From f64e1dca313ef2d2fbd8122603652a57c2ba603d Mon Sep 17 00:00:00 2001 From: Thomas Schulz Date: Wed, 3 Jun 2020 23:12:24 +0200 Subject: [PATCH] Added meta for Console Command exit codes constants (#6) --- Symfony/Component/Console/.phpstorm.meta.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Symfony/Component/Console/.phpstorm.meta.php b/Symfony/Component/Console/.phpstorm.meta.php index 4640222..ff99a70 100644 --- a/Symfony/Component/Console/.phpstorm.meta.php +++ b/Symfony/Component/Console/.phpstorm.meta.php @@ -209,8 +209,18 @@ expectedReturnValues(\Symfony\Component\Console\Helper\TableStyle::getPadType(), STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH); registerArgumentsSet('symfony_console_exitcodes', + \Symfony\Component\Console\Command\Command::SUCCESS, + \Symfony\Component\Console\Command\Command::FAILURE + ); + expectedReturnValues(\Symfony\Component\Console\Command\Command::execute(), argumentsSet('symfony_console_exitcodes')); + expectedReturnValues(\Symfony\Component\Console\Command\Command::run(), argumentsSet('symfony_console_exitcodes')); + + registerArgumentsSet('symfony_console_event_exitcodes', + \Symfony\Component\Console\Command\Command::SUCCESS, + \Symfony\Component\Console\Command\Command::FAILURE, \Symfony\Component\Console\Event\ConsoleCommandEvent::RETURN_CODE_DISABLED ); - expectedReturnValues(\Symfony\Component\Console\Event\ConsoleErrorEvent::getExitCode(), argumentsSet('symfony_console_exitcodes')); - expectedReturnValues(\Symfony\Component\Console\Event\ConsoleTerminateEvent::getExitCode(), argumentsSet('symfony_console_exitcodes')); + expectedArguments(\Symfony\Component\Console\Event\ConsoleErrorEvent::setExitCode(), 0, argumentsSet('symfony_console_event_exitcodes')); + expectedReturnValues(\Symfony\Component\Console\Event\ConsoleErrorEvent::getExitCode(), argumentsSet('symfony_console_event_exitcodes')); + expectedReturnValues(\Symfony\Component\Console\Event\ConsoleTerminateEvent::getExitCode(), argumentsSet('symfony_console_event_exitcodes')); } \ No newline at end of file