<?php class X { readonly public string $property; public function __construct() { $this->property = 1; } } $object = new x(); $reference =& $object->property; //Cannot modify readonly property X::$property class Y { readonly public string $property; public function __construct(&$a) { // first time assignation $this->property = &$a; //Cannot modify readonly property X::$property } } $a = 'A'; $object = new Y($a);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`