The expression current($this->resources); of type Aeq\Hal\Explorer\ResourceInterface|false adds false to the return on line 40 which is incompatible with the return type documented by Aeq\Hal\Explorer\ResourceCollection::current of type Aeq\Hal\Explorer\Resource. It seems like you forgot to handle an error condition.