Skip to content

Conversation

AydinHassan
Copy link
Member

I tried to use the latest workshop code with learn you PHP and it fell over quite a bit. It turns out this error handling we have is not really working. Somehow, the tear down was getting called multiple times and errors were being completely swallowed up.

I've refactored to basically convert all warnings/notices and let the exception handler deal with them and call the teardown. I've also refactored the exception message printing to include the trace and more info. We can hide that behind the debug flag if it gets too noisy.

@AydinHassan AydinHassan requested a review from mikeymike June 20, 2021 15:33
@AydinHassan AydinHassan merged commit b9df42d into master Jun 22, 2021
@AydinHassan AydinHassan deleted the error-handling branch June 22, 2021 20:36
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.

2 participants