Class can be 'readonly'

Last modified: 03 December 2024

Reports the classes which contain only readonly properties and can have the readonly modifier added to them.

Read-only classes are supported in PHP 8.2 and later. See Readonly classes RFC (php.net) for details.