Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 194 Bytes

InvalidCatch.md

File metadata and controls

13 lines (10 loc) · 194 Bytes

InvalidCatch

Emitted when trying to catch a class/interface that doesn't extend Exception or implement Throwable

<?php

class A {}
try {
    $worked = true;
}
catch (A $e) {}