diff --git a/extension.neon b/extension.neon index 7ea78616..eb0f900e 100644 --- a/extension.neon +++ b/extension.neon @@ -21,7 +21,9 @@ parameters: - stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub - stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub - stubs/Symfony/Component/Console/Command.stub + - stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub - stubs/Symfony/Component/Console/Helper/HelperInterface.stub + - stubs/Symfony/Component/Console/Input/InputInterface.stub - stubs/Symfony/Component/Console/Output/OutputInterface.stub - stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub - stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub diff --git a/stubs/Symfony/Component/Console/Command.stub b/stubs/Symfony/Component/Console/Command.stub index 6bc2ea4b..c6fd1b84 100644 --- a/stubs/Symfony/Component/Console/Command.stub +++ b/stubs/Symfony/Component/Console/Command.stub @@ -2,10 +2,19 @@ namespace Symfony\Component\Console\Command; +use Symfony\Component\Console\Exception\ExceptionInterface; +use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Output\OutputInterface; + class Command { /** * @return \Symfony\Component\Console\Helper\HelperInterface */ public function getHelper(string $name); + + /** + * @throws ExceptionInterface + */ + public function run(InputInterface $input, OutputInterface $output): int; } diff --git a/stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub b/stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub new file mode 100644 index 00000000..6e3c1226 --- /dev/null +++ b/stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub @@ -0,0 +1,7 @@ +