package and depencies

This commit is contained in:
RafficMohammed
2023-01-08 02:57:24 +05:30
parent d5332eb421
commit 1d54b8bc7f
4309 changed files with 193331 additions and 172289 deletions

View File

@@ -26,7 +26,7 @@ final class ConsoleCommandEvent extends ConsoleEvent
/**
* Indicates if the command should be run or skipped.
*/
private $commandShouldRun = true;
private bool $commandShouldRun = true;
/**
* Disables the command, so it won't be run.

View File

@@ -22,8 +22,8 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
final class ConsoleErrorEvent extends ConsoleEvent
{
private $error;
private $exitCode;
private \Throwable $error;
private int $exitCode;
public function __construct(InputInterface $input, OutputInterface $output, \Throwable $error, Command $command = null)
{
@@ -47,7 +47,6 @@ final class ConsoleErrorEvent extends ConsoleEvent
$this->exitCode = $exitCode;
$r = new \ReflectionProperty($this->error, 'code');
$r->setAccessible(true);
$r->setValue($this->error, $this->exitCode);
}

View File

@@ -25,8 +25,8 @@ class ConsoleEvent extends Event
{
protected $command;
private $input;
private $output;
private InputInterface $input;
private OutputInterface $output;
public function __construct(?Command $command, InputInterface $input, OutputInterface $output)
{
@@ -37,30 +37,24 @@ class ConsoleEvent extends Event
/**
* Gets the command that is executed.
*
* @return Command|null
*/
public function getCommand()
public function getCommand(): ?Command
{
return $this->command;
}
/**
* Gets the input instance.
*
* @return InputInterface
*/
public function getInput()
public function getInput(): InputInterface
{
return $this->input;
}
/**
* Gets the output instance.
*
* @return OutputInterface
*/
public function getOutput()
public function getOutput(): OutputInterface
{
return $this->output;
}

View File

@@ -20,7 +20,7 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
final class ConsoleSignalEvent extends ConsoleEvent
{
private $handlingSignal;
private int $handlingSignal;
public function __construct(Command $command, InputInterface $input, OutputInterface $output, int $handlingSignal)
{

View File

@@ -22,7 +22,7 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
final class ConsoleTerminateEvent extends ConsoleEvent
{
private $exitCode;
private int $exitCode;
public function __construct(Command $command, InputInterface $input, OutputInterface $output, int $exitCode)
{