mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +01:00
12 lines
187 B
Markdown
12 lines
187 B
Markdown
|
# 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) {}
|
||
|
```
|