The expression return $this->getFromDat...r', array($identifier)) could return the type array<mixed,object> which is incompatible with the type-hinted return AbterPhp\Admin\Domain\Entities\AdminResource|null. Consider adding an additional type-check to rule them out.
Loading history...
23
}
24
/**
25
* @param string $userId
26
*
27
* @return Entity[]
28
* @throws OrmException
29
*/
30
public function getByUserId(string $userId): array
The expression return $this->getFromDat...serId', array($userId)) could return the type object which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.