8000 minor #46857 Fix Command::run phpdoc (VincentLanglet) · symfony/symfony@04ae33a · GitHub
[go: up one dir, main page]

Skip to content

Commit 04ae33a

Browse files
committed
minor #46857 Fix Command::run phpdoc (VincentLanglet)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- Fix Command::run phpdoc | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | Phpdoc-fix | New feature? | no | Deprecations? | no | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Command::run is doing ``` try { $input->bind($this->definition); } catch (ExceptionInterface $e) { if (!$this->ignoreValidationErrors) { throw $e; } } ``` Since, bind only throws `ExceptionInterface` and we re-throw this exception, the only exception thrown by the `run` method are `ExceptionInterface` and not `\Exception` which is too generic and out of Symfony namespace. Commits ------- bedd5ae Fix Command::run phpdoc
2 parents d0230da + bedd5ae commit 04ae33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Command/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
195195
*
196196
* @return int The command exit code
197197
*
198-
* @throws \Exception When binding input fails. Bypass this by calling {@link ignoreValidationErrors()}.
198+
* @throws ExceptionInterface When input binding fails. Bypass this by calling {@link ignoreValidationErrors()}.
199199
*
200200
* @see setCode()
201201
* @see execute()

0 commit comments

Comments
 (0)
0