Skip to content

Files

Latest commit

 

History

History
15 lines (12 loc) · 277 Bytes

InvalidInterfaceImplementation.md

File metadata and controls

15 lines (12 loc) · 277 Bytes

InvalidInterfaceImplementation

Emitted when trying to implement interface that cannot be implemented (e.g. Throwable, UnitEnum, BackedEnum).

<?php

class E implements UnitEnum 
{
    public static function cases(): array 
    {
        return []; 
    }
}