Code Inspection: Order of modifiers
Reports visibility modifiers that are specified in the incorrect order.
According to PSR-12, the correct order is as follows:
When present, the
abstract
andfinal
declarations MUST precede the visibility declaration.When present, the
static
declaration MUST come after the visibility declaration.
See PSR-12: Extended Coding Style (php-fig.org) for details.
Suppress an inspection in the editor
Place the caret at the highlighted line and press Alt+Enter or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.
Last modified: 11 February 2024