lint/style/prefer-readonly-keyword
In the coding-style set. Unsafe fix: it can change behaviour.
What it does
Converts readonly comment on classes to the readonly keyword.
Configuration
[lint.rules]
"style/prefer-readonly-keyword" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
phpdoc_readonly_class_comment_to_keyword(php-cs-fixer, risky)