update2
This commit is contained in:
parent
98419bd18d
commit
8a69e45efa
4919 changed files with 28311 additions and 224136 deletions
2
pfosten/vendor/symfony/console/Event/ConsoleCommandEvent.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/console/Event/ConsoleCommandEvent.php
vendored
Executable file → Normal file
|
|
@ -25,8 +25,6 @@ class ConsoleCommandEvent extends ConsoleEvent
|
|||
|
||||
/**
|
||||
* Indicates if the command should be run or skipped.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $commandShouldRun = true;
|
||||
|
||||
|
|
|
|||
4
pfosten/vendor/symfony/console/Event/ConsoleErrorEvent.php
vendored
Executable file → Normal file
4
pfosten/vendor/symfony/console/Event/ConsoleErrorEvent.php
vendored
Executable file → Normal file
|
|
@ -51,7 +51,7 @@ final class ConsoleErrorEvent extends ConsoleEvent
|
|||
public function setError($error)
|
||||
{
|
||||
if (!$error instanceof \Throwable && !$error instanceof \Exception) {
|
||||
throw new InvalidArgumentException(sprintf('The error passed to ConsoleErrorEvent must be an instance of \Throwable or \Exception, "%s" was passed instead.', is_object($error) ? get_class($error) : gettype($error)));
|
||||
throw new InvalidArgumentException(sprintf('The error passed to ConsoleErrorEvent must be an instance of \Throwable or \Exception, "%s" was passed instead.', \is_object($error) ? \get_class($error) : \gettype($error)));
|
||||
}
|
||||
|
||||
$this->error = $error;
|
||||
|
|
@ -78,6 +78,6 @@ final class ConsoleErrorEvent extends ConsoleEvent
|
|||
*/
|
||||
public function getExitCode()
|
||||
{
|
||||
return null !== $this->exitCode ? $this->exitCode : ($this->error->getCode() ?: 1);
|
||||
return null !== $this->exitCode ? $this->exitCode : (\is_int($this->error->getCode()) && 0 !== $this->error->getCode() ? $this->error->getCode() : 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/console/Event/ConsoleEvent.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/console/Event/ConsoleEvent.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/console/Event/ConsoleExceptionEvent.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/console/Event/ConsoleExceptionEvent.php
vendored
Executable file → Normal file
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace Symfony\Component\Console\Event;
|
||||
|
||||
@trigger_error(sprintf('The "%s" class is deprecated since version 3.3 and will be removed in 4.0. Use the ConsoleErrorEvent instead.', ConsoleExceptionEvent::class), E_USER_DEPRECATED);
|
||||
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 3.3 and will be removed in 4.0. Use the ConsoleErrorEvent instead.', ConsoleExceptionEvent::class), E_USER_DEPRECATED);
|
||||
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/console/Event/ConsoleTerminateEvent.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/console/Event/ConsoleTerminateEvent.php
vendored
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue