Static property %s::$%s cannot be readonly¶
Description¶
Static properties cannot use the readonly option. readonly
does not support static properties.
Example¶
<?php
class X {
public static readonly int $property;
}
?>
Literal Examples¶
Static property X::$property cannot be readonly
Solutions¶
Remove the readonly option.
Turn the static property into a normal property.