报告在声明范围之外对 readonly 属性的写入访问。 声明范围实际上意味着在其中声明属性的类的非 static 方法。

请参阅Readonly properties (php.net) 了解详情。