clean-code-php icon indicating copy to clipboard operation
clean-code-php copied to clipboard

Code Error

Open russeljo opened this issue 11 months ago • 1 comments

In code error - we implement interface and extend class. In code wrong.

interface Workable
{
    public function work(): void;
}

interface Feedable
{
    public function eat(): void;
}

interface Employee **extends** Feedable, Workable
{
}

class HumanEmployee **implements** Employee
{

russeljo avatar Jan 19 '25 15:01 russeljo

There is no error here https://3v4l.org/aIq0P https://phpstan.org/r/be82d85e-1dda-4ab3-8374-65992f1115e4

peter-gribanov avatar Mar 25 '25 16:03 peter-gribanov