Inspectopedia
 
2024.3

Write access to 'readonly' property outside of declaration scope

Error
New
Last modified: 03 December 2024

Reports the write accesses to readonly properties that are made outside the declaration scope. A declaration scope effectively means non-static methods of the class in which a property is declared.

See Readonly properties (php.net) for details.