Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 268 Bytes

RedundantCatch.md

File metadata and controls

23 lines (18 loc) · 268 Bytes

RedundantCatch

Emitted when catching an exception that was already caught.

<?php

class A {}
try {
    $worked = true;
} catch (Throwable $e) {
} catch (Exception $e) {
}
<?php

try {
    $worked = true;
} catch (Exception|Throwable $e) {
}