报告从未写入的 private 提升属性。 在 PHP 8.1 和更高版本中,此类属性可以声明为
readonly
。
请参阅
Readonly properties (php.net)
了解详情。