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