The expression $this->getDefaultHelper(); of type Alchemy\Phraseanet\Helper\InstanceHelper|false adds false to the return on line 32 which is incompatible with the return type documented by Alchemy\Phraseanet\Helpe...lperRegistry::getHelper of type Alchemy\Phraseanet\Helper\InstanceHelper. It seems like you forgot to handle an error condition.
Loading history...
33
}
34
35
2
if (! $this->hasHelper($name)) {
36
throw new \OutOfBoundsException("Helper '$name' is not defined.");