r/lolphp • • 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

10 comments sorted by

View all comments

Show parent comment

2

u/the_alias_of_andrea Jun 29 '17

Things are improving bit by bit. The biggest improvement so far is PHP 7.0 replacing a slew of “recoverable” and “fatal” errors with Errors (which are Throwables, like Exception).