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...
28
}
29
30
/**
31
* @param string $identifier
32
*
33
* @return Entity|null
34
* @throws \Opulence\Orm\OrmException
35
*/
36
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\ContentList|null. Consider adding an additional type-check to rule them out.