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 e5740b1

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

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

‎extension.neon‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ 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
22+
- stubs/Symfony/Component/Console/Input/InputInterface.stub
23+
- stubs/Symfony/Component/Console/Output/OutputInterface.stub
2124
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
2225
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub
2326
- stubs/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.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+
}
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\Output;
4+
5+
interface OutputInterface
6+
{
7+
}

0 commit comments

Comments
(0)

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