clean-code-php
clean-code-php copied to clipboard
Code Error
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
{
There is no error here https://3v4l.org/aIq0P https://phpstan.org/r/be82d85e-1dda-4ab3-8374-65992f1115e4