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

lint/style/no-php4-constructor

In the modernize set. Unsafe fix: it can change behaviour.

What it does

Convert PHP4-style constructors to __construct.

Configuration

[lint.rules]
"style/no-php4-constructor" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Replaces

More lint/style rules · Edit this page

Last updated on

Was this page helpful?