Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 00ecfb9

Browse files
Fix exception thrown by Command::run
1 parent a535924 commit 00ecfb9

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

‎extension.neon‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ parameters:
1717
- stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub
1818
- stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub
1919
- stubs/Symfony/Component/Console/Command.stub
20+
- stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub
2021
- stubs/Symfony/Component/Console/Helper/HelperInterface.stub
2122
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
2223
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub

‎stubs/Symfony/Component/Console/Command.stub‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@
22

33
namespace Symfony\Component\Console\Command;
44

5+
use Symfony\Component\Console\Exception\ExceptionInterface;
6+
57
class Command
68
{
79
/**
810
* @return \Symfony\Component\Console\Helper\HelperInterface
911
*/
1012
public function getHelper(string $name);
13+
14+
/**
15+
* @throws ExceptionInterface
16+
*/
17+
public function run(InputInterface $input, OutputInterface $output): int;
1118
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Symfony\Component\Console\Exception;
4+
5+
interface ExceptionInterface extends \Throwable
6+
{
7+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /