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