Code Inspection: Wrong catch clauses order
Reports the exceptions that are already caught by a preceding exception and the exceptions that are caught twice.
The catch
clauses must be ordered from more specific to more generic ones. Otherwise, some exceptions may not be caught by the most specific handler.
See Exceptions (php.net) 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