mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 13:10:49 +01:00
14 lines
194 B
Markdown
14 lines
194 B
Markdown
# InvalidCatch
|
|
|
|
Emitted when trying to catch a class/interface that doesn't extend `Exception` or implement `Throwable`
|
|
|
|
```php
|
|
<?php
|
|
|
|
class A {}
|
|
try {
|
|
$worked = true;
|
|
}
|
|
catch (A $e) {}
|
|
```
|