On Thu, Mar 24, 2016 at 9:45 AM, Nikita Popov <nikita....@gmail.com> wrote:
> To clarify, as the RFC only mentions this by implication:
>
>     unset($x); // Assume $x is undefined
>     $x ?:= $y;
>
> This will throw a notice, correct?
>
Yes.  The equivalent short-ternary:

$x = $x ?: $y;

would throw a notice, so the assignment version should (and would) as well.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to