diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2016-04-05 00:34:42 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2016-05-20 01:51:05 +0200 |
commit | 4f077aee836ad7d8335cf62629a8364bdf939db9 (patch) | |
tree | f9853b092345e1847f43e1e9cbb846bebe0cc3c3 /Zend/tests/assert | |
parent | 14a71cf545bf652202a3f056daefd654ad311eb5 (diff) | |
download | php-git-4f077aee836ad7d8335cf62629a8364bdf939db9.tar.gz |
Allow for [] = $array; (alias for list())
Diffstat (limited to 'Zend/tests/assert')
-rw-r--r-- | Zend/tests/assert/expect_015.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/tests/assert/expect_015.phpt b/Zend/tests/assert/expect_015.phpt index 030913f7f9..0c53c75c4d 100644 --- a/Zend/tests/assert/expect_015.phpt +++ b/Zend/tests/assert/expect_015.phpt @@ -154,7 +154,7 @@ Warning: assert(): assert(0 && ($a = function () { $x = $a ? $b : $c; $x = $a ?: $c; $x = $a ?? $b; - list($a, $b, $c) = [1, 2 => 'x', 'z' => 'c']; + [$a, $b, $c] = [1, 2 => 'x', 'z' => 'c']; @foo(); $y = clone $x; yield 1 => 2; |