Description
This emits a warning:
<?php
['a'=>$b] = [];
var_dump($b);
// Warning: Undefined array key "a" in /in/D0WSJ on line 2
// NULL
This doesn't:
<?php
['a'=>$b] = 0;
var_dump($b);
// NULL
That seems unintuitive and error-prone.
(3v4l: first, second)
PHP Version
all supported versions + current master
Operating System
No response