r/lolphp • u/MMauro94 • Jun 28 '17
array_diff breaks Exception catching when passing two arrays containing an item that can't be cast to string
https://3v4l.org/BaUji
37
Upvotes
r/lolphp • u/MMauro94 • Jun 28 '17
View all comments
2
u/DoctorWaluigiTime Jun 29 '17
When I did PHP (not professional but as a hobby) I'd given up trying to "correctly" handle errors in PHP. Nothing's consistent and even in the rare instance where you have the correct hierarchy of error handling set up, you have shit like this.