You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a situation where the actual error during bootstrap was hidden inside an exception set as $previous, leaving me with only a vague general error (that was coming from my own code, but the actual error with proper stacktrace was inside).
Summary
I had a situation where the actual error during bootstrap was hidden inside an exception set as
$previous
, leaving me with only a vague general error (that was coming from my own code, but the actual error with proper stacktrace was inside).This follows up on #4877 and #4878.
No idea if the behavior is changed for PHPUnit 10.
Current behavior
Currently errors during bootstrap do print stacktrace, but only from the top-most exception.
How to reproduce
Create a bootstrap file that throws an exception with the 3rd argument (
$previous
) filled with yet another exception.Expected behavior
Ideally, the previous exceptions stacktrace is printed out, until we reach the end of the "exception stack".
Something along the lines of:
The text was updated successfully, but these errors were encountered: