Re: Improve "trying to get property 'id' of non-object" error message
| From: | David Rodrigues | Date: | Thu, 02 Jul 2020 17:43:04 +0000 |
| Subject: | Re: Improve "trying to get property 'id' of non-object" error message | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110823@lists.php.net to get a copy of this message | ||
Seems great, but maybe include more information should be better:
Warning: Attempt to read property 'property' on bool <<variable $a>> in
/in/IGUcS on line 5
Atenciosamente,
David Rodrigues
Em qui., 2 de jul. de 2020 às 12:27, Máté Kocsis <kocsismate90@gmail.com>
escreveu:
> 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é
>