You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Error]
Call to undefined method Symfony\Component\Console\Output\ConsoleOutput::newLine()
in vendor/spiral/framework/src/Console/src/Traits/HelpersTrait.php:197
How To Reproduce
In the console application, set to production/prod and call $this->alert(),
Additional Info
Q
A
Framework Version
3.11
PHP version
8.3.1
Operating system
Linux
The text was updated successfully, but these errors were encountered:
@lifewcody Hi, I installed a clean installation of spiral/app (in the installer I selected the console application) and added the call to the example console command:
namespaceApp\Endpoint\Console;
useSpiral\Console\Attribute\AsCommand;
useSpiral\Console\Command;
#[AsCommand(name: 'do-nothing', description: 'The command does nothing.')]
finalclassDoNothingextendsCommand
{
publicfunctionperform(): int
{
$this->alert('test'); // <----returnself::SUCCESS;
}
}
Description
protected function alert(string $string): void
in HelpersTrait.php calls the following:
$this->newLine();
Which calls $this->output->newLine($count);
Which returns:
[Error]
Call to undefined method Symfony\Component\Console\Output\ConsoleOutput::newLine()
in vendor/spiral/framework/src/Console/src/Traits/HelpersTrait.php:197
How To Reproduce
In the console application, set to production/prod and call $this->alert(),
Additional Info
The text was updated successfully, but these errors were encountered: