Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle late error when exception handler is active #1710

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

mvorisek
Copy link
Member

steps to reproduce:

  1. output some unwatend output (echo 'xx';)
  2. throw some exception

test for this should be added before merge

@PhilippGrashoff
Copy link
Collaborator

Thumbs up for this one, very sensible.

Copy link
Collaborator

@abbadon1334 abbadon1334 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preapprove it, agree to add a test, we need it to check for PSR7

@mvorisek mvorisek marked this pull request as ready for review November 29, 2021 23:48
@mvorisek mvorisek force-pushed the fix_late_error_output_when_already_handling_ex branch from 7b7dfe1 to 6246614 Compare November 30, 2021 01:36
@mvorisek
Copy link
Member Author

Merging, impossible to unit test as error/exception handler cannot be removed easily, as we do not know if the latest handler is the one set from the App - https://www.php.net/manual/en/function.restore-error-handler.php

Late errors can be tested with Behat only.

@mvorisek mvorisek merged commit d4be0d5 into develop Nov 30, 2021
@mvorisek mvorisek deleted the fix_late_error_output_when_already_handling_ex branch November 30, 2021 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants