mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 21:19:03 +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 [];
|
||
|
}
|
||
|
}
|
||
|
```
|