Hi, What is the behaviour of the following code?
```php
class Foo {
public private(set) array $bar = [ ];
}
$foo = new Foo;
$foo->bar['x'] = 'y'; // error?
var_dump(isset($foo->bar['x'])); // true?, false?
```
I think that modification of an array should require write access? (That should
be clarified in the RFC.)
—Claude
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
