bug #27662 [HttpKernel] fix handling of nested Error instances (xabbuh)
This PR was merged into the 3.4 branch.
Discussion
----------
[HttpKernel] fix handling of nested Error instances
| Q | A
| ------------- | ---
| Branch? | 4.1
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #27613
| License | MIT
| Doc PR |
Commits
-------
a6696d03b1
fix handling of nested Error instances
This commit is contained in:
commit
d652222ef6
@ -64,7 +64,7 @@ class ExceptionListener implements EventSubscriberInterface
|
||||
}
|
||||
}
|
||||
|
||||
$prev = new \ReflectionProperty('Exception', 'previous');
|
||||
$prev = new \ReflectionProperty($wrapper instanceof \Exception ? \Exception::class : \Error::class, 'previous');
|
||||
$prev->setAccessible(true);
|
||||
$prev->setValue($wrapper, $exception);
|
||||
|
||||
|
Reference in New Issue
Block a user