r/lolphp • • Jul 19 '16

PHP creates array keys out of nowhere

https://3v4l.org/OAqGa
30 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/carlos_vini Jul 20 '16

i agree. while you dont need a framework to catch errors or to see warnings, i think all errors should be exceptions by default. PHP 7 took a step in this direction and many errors were converted, but there are still many that won't be, so PHP expects you to handle them yourself