The expression return $this->getFromDat... $conditions, $params)) could return the type object which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.
Loading history...
29
}
30
31
/**
32
* @param UserGroup $userGroup
33
*
34
* @return Entity[]
35
* @throws \Opulence\Orm\OrmException
36
*/
37
public function getByUserGroup(UserGroup $userGroup): array
The expression return $this->getFromDat...y($userGroup->getId())) could return the type object which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.