Skip to content

Commit 801e7a1

Browse files
committed
Add an example of indirectly modifying readonly property
1 parent fcf847c commit 801e7a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

language/oop5/properties.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ $test->i++;
300300
++$test->i;
301301
$test->ary[] = 1;
302302
$test->ary[0][] = 1;
303+
unset($test->ary[0]);
303304
$ref =& $test->i;
304305
$test->i =& $ref;
305306
byRef($test->i);

0 commit comments

Comments
 (0)