summaryrefslogtreecommitdiff
path: root/Zend/tests/assign_coalesce_005.phpt
blob: 20510105e144e0e323d726aeead127e307084253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Coalesce assign (??=): Cannot reassign $this
--FILE--
<?php

class Test {
    public function foobar() {
        $this ??= 123;
    }
}

?>
--EXPECTF--
Fatal error: Cannot re-assign $this in %s on line %d