1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 21:19:03 +01:00
psalm/docs/running_psalm/issues/InvalidInterfaceImplementation.md

16 lines
277 B
Markdown
Raw Normal View History

# InvalidInterfaceImplementation
Emitted when trying to implement interface that cannot be implemented (e.g. `Throwable`, `UnitEnum`, `BackedEnum`).
```php
<?php
class E implements UnitEnum
{
public static function cases(): array
{
return [];
}
}
```