1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-03 18:17:55 +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 [];
}
}
```