lint/style/no-php4-constructor
In the lint-strict preset. In Rector’s rector/php70 set. Unsafe fix: it can change behavior.
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
no_php4_constructor(php-cs-fixer, risky)Php4Constructor(rector)no-legacy-constructor(mago-linter)