Mathias Reker ⚡️
Mathias Reker ⚡️
Replace get_class calls on object variables with class keyword syntax.
Visibility MUST be declared on all properties and methods; abstract and final MUST be declared before the visibility; static MUST be declared after the visibility.
Lambdas not (indirect) referencing $this must be declared static.
Adds ? before type declarations for parameters with a default null value
All public methods of abstract classes should be final. Enforce API encapsulation in an inheritance architecture. If you want to override a method, use the Template method pattern.
Lambdas not (indirect) referencing $this must be declared static.
Add curly braces to indirect variables to make them clear to understand.
Add void return type to functions with missing or empty return statements, but priority is given to @return annotations.
Simplify if control structures that return the boolean result of their condition.
Force strict types declaration in all files.