Re: [PHP-DEV] Improve "trying to get property 'id' of non-object" error message

2020-07-02 Thread David Rodrigues
Seems great, but maybe include more information should be better: Warning: Attempt to read property 'property' on bool <> in /in/IGUcS on line 5 Atenciosamente, David Rodrigues Em qui., 2 de jul. de 2020 às 12:27, Máté Kocsis escreveu: > Hi David, > > Please have a look at this example code:

Re: [PHP-DEV] Improve "trying to get property 'id' of non-object" error message

2020-07-02 Thread Máté Kocsis
Hi David, Please have a look at this example code: https://3v4l.org/IGUcS We've made dozens of error messages more helpful and more consistent for PHP 8. This is one of them. :) Cheers, Máté

[PHP-DEV] Improve "trying to get property 'id' of non-object" error message

2020-07-02 Thread David Rodrigues
Hello! Is it possible to improve this error message? It is much more complicated to identify when we have two occurrences on the same line. For example: $availMasterResults->get($availMaster->id . '@' . $sessionUser->id) -> trying to get property 'id' of non-object Is not possible to identify i