Lines Matching refs:prop
7 public readonly object $prop;
9 public function __construct(object $prop) {
10 $this->prop = $prop;
15 $test->prop->foo = 1;
16 $test->prop->foo += 1;
17 $test->prop->foo++;
19 $test->prop += 1;
24 $test->prop++;
29 --$test->prop;
33 var_dump($test->prop);
35 // Unfortunately this is allowed, but does not modify $test->prop.
36 $ref =& $test->prop;
38 var_dump($test->prop);
41 $test->prop[] = [];
42 $test->prop[0][] = 1;
43 var_dump($test->prop);
48 Cannot modify readonly property Test::$prop
49 Cannot modify readonly property Test::$prop