Print stacktrace when included bootstrap-file throws#51
Print stacktrace when included bootstrap-file throws#51ondrejmirtes merged 1 commit intophpstan:masterfrom
Conversation
|
just verified the changes on a different workstation. // a file included from phpstan-bootstrap.php
throw new Exception('boom!');without this change (current master 4c85ff6): After this change After this change, when using the additional |
|
@ondrejmirtes any Feedback? |
|
Psalm implemented a similar feature |
|
@ondrejmirtes anything I can do to push this forward? |
|
today stumbled over this problem while setting up a new application with phpstan. bootstrap throws (because of missing constants in the bootstrap before including files) and its really hard to debug because of a missing stacktrace |
0786c63 to
9395d76
Compare
dc2e229 to
1d0d3ad
Compare
|
@ondrejmirtes any feedback on this one? |
ondrejmirtes
left a comment
There was a problem hiding this comment.
These two points and it will be good to merge 👍
|
Please fix the conflicts and squash your changes into a single commit rebased on top of master. |
02829dc to
fe466ac
Compare
|
squashed and rebased |
|
Thank you! |
Closes phpstan/phpstan#2210
note: since I cannot build phpstan locally, I wasnt able to test this change (see #50)