Hi everybody!

To my surprise, I noticed today that an array access on a `null` value returns 
`null` without any warning whatsoever.
Accessing the property of a `null` value gives you a notice, while calling a 
function on that `null` value gives you a fatal error.

https://3v4l.org/ZSZHN

This is pretty inconsistent. IMO all of these should be fatal errors, although 
I realize that might be a bit drastic for PHP 8.
We should at least give the user a notice when using array access on a `null` 
value.

Any thoughts?

Regards,
Ilija


Reply via email to