The expression return $this->entityTypes returns the type string[] which is incompatible with the documented return type Hryvinskyi\DeferJs\Model...or\ValidatorInterface[].
Loading history...
42
}
43
44
/**
45
* @param string $code
46
*
47
* @return ValidatorInterface
48
*/
49
public function getEntityByCode(string $code): ValidatorInterface
The expression return $this->entityTypes[$code] returns the type string which is incompatible with the type-hinted return Hryvinskyi\DeferJs\Model...ator\ValidatorInterface.