Re: PHP 7.1 - Address PHPSadness #28?
| From: | Rowan Collins | Date: | Sat, 19 Sep 2015 12:06:11 +0000 |
| Subject: | Re: PHP 7.1 - Address PHPSadness #28? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88371@lists.php.net to get a copy of this message | ||
On 19 September 2015 09:36:12 BST, Lester Caine <lester@lsces.co.uk> wrote:
> I first hit this particular one becuase of notices
>appearing on what had been clean code. And NO switching off those
>notices is not the right fix, but it is the ONLY fix at the moment.
Please show me an example where isset() gives a notice.
>IS there another fix for is_null($bar) not throwing a notice if it has
>not been created in my example for the current template.
Yes, use isset().
Regards,
--
Rowan Collins
[IMSoP]