The expression return $this->createQuer...getQuery()->getResult() could return the type integer which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.
Loading history...
17
->andWhere('o.name LIKE :phrase OR o.code LIKE :phrase')