Code Inspection: Usage of var
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports the usages of the var
keyword for declaring class properties.
According to PSR-12, the var
keyword MUST NOT be used to declare a property.
See PSR-12: Extended Coding Style (php-fig.org) for details.
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.