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...
26
}
27
28
/**
29
* @param string $identifier
30
*
31
* @return Entity|null
32
* @throws \Opulence\Orm\OrmException
33
*/
34
public function getByIdentifier(string $identifier): ?Entity
The expression return $this->getFromDat...r', array($identifier)) could return the type array<mixed,object> which is incompatible with the type-hinted return AbterPhp\Website\Domain\Entities\PageCategory|null. Consider adding an additional type-check to rule them out.