Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/php-8.6/prefer-readonly-property-default

In the modernize set. Unsafe fix: it can change behaviour. Gated by php-8.6. Planned: not in Pun yet. Enabling it is a config error.

What it does

Move a constant constructor assignment of a readonly property to a property default value

Replaces

More lint/php-8.6 rules · Edit this page

Last updated on

Was this page helpful?