Please sign in to comment.
bug #24951 [Console] Fixed exit code with non-integer throwable code …
…(wouterj) This PR was merged into the 4.1-dev branch. Discussion ---------- [Console] Fixed exit code with non-integer throwable code | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - The exception/error code in PHP doesn't have to be an integer: > Returns the exception code as integer in Exception but possibly as other type in Exception descendants (for example as string in PDOException). > http://php.net/manual/en/exception.getcode.php#refsect1-exception.getcode-returnvalues This means that a "Return value of Symfony\Component\Console\Event\ConsoleErrorEvent::getExitCode() must be of the type integer, string returned" error is shown when e.g. an uncatched PDOException is handled by the console error event. Commits ------- ca86e65 Fixed exit code with non-integer throwable code
- Loading branch information...
Showing with 1 addition and 1 deletion.