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 f9c1db1

Browse files
Fix exception thrown by Command::run
1 parent c612f67 commit f9c1db1

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

‎extension.neon‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ parameters:
2121
- stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub
2222
- stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub
2323
- stubs/Symfony/Component/Console/Command.stub
24+
- stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub
2425
- stubs/Symfony/Component/Console/Helper/HelperInterface.stub
26+
- stubs/Symfony/Component/Console/Input/InputInterface.stub
2527
- stubs/Symfony/Component/Console/Output/OutputInterface.stub
2628
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
2729
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub

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

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

33
namespace Symfony\Component\Console\Command;
44

5+
use Symfony\Component\Console\Exception\ExceptionInterface;
6+
use Symfony\Component\Console\Input\InputInterface;
7+
use Symfony\Component\Console\Output\OutputInterface;
8+
59
class Command
610
{
711
/**
812
* @return \Symfony\Component\Console\Helper\HelperInterface
913
*/
1014
public function getHelper(string $name);
15+
16+
/**
17+
* @throws ExceptionInterface
18+
*/
19+
public function run(InputInterface $input, OutputInterface $output): int;
1120
}
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+
}
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\Input;
4+
5+
interface InputInterface
6+
{
7+
}

0 commit comments

Comments
(0)

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