The expression return $this->menuFactor...create($name, $options) could return the type null which is incompatible with the type-hinted return Knp\Menu\ItemInterface. Consider adding an additional type-check to rule them out.
Loading history...
32
}
33
34
public function has(string $name, array $options = []): bool