mirror of
https://github.com/danog/psalm.git
synced 2024-12-12 17:27:28 +01:00
16 lines
277 B
Markdown
16 lines
277 B
Markdown
|
# 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 [];
|
||
|
}
|
||
|
}
|
||
|
```
|