minor #33040 [Console] Fix parse error (derrabus)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[Console] Fix parse error

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

An extra closing bracket is breaking the tests on master currently.

Commits
-------

78630e5234 Fix parse error.
This commit is contained in:
Nicolas Grekas 2019-08-08 11:12:22 +02:00
commit 4e57758931

View File

@ -132,7 +132,7 @@ class Application implements ResetInterface
};
if ($phpHandler = set_exception_handler($renderException)) {
restore_exception_handler();
if (!\is_array($phpHandler) || !$phpHandler[0] instanceof ErrorHandle)) {
if (!\is_array($phpHandler) || !$phpHandler[0] instanceof ErrorHandler) {
$errorHandler = true;
} elseif ($errorHandler = $phpHandler[0]->setExceptionHandler($renderException)) {
$phpHandler[0]->setExceptionHandler($errorHandler);