Inspectopedia Help

Redundant catch clause

Reports the catch clauses with exceptions that are never thrown from the corresponding try block.

Inspection options

Option

Type

Default

PHP / Analysis

SettingLink

None

Inspection Details

Available in:

PhpStorm 2023.3, Qodana for PHP 2023.3

Plugin:

PHP, 233.SNAPSHOT

Last modified: 13 July 2023