diff --git a/lib/Doctrine/ODM/PHPCR/Query/Query.php b/lib/Doctrine/ODM/PHPCR/Query/Query.php index 87222abb2..c1a63e75d 100644 --- a/lib/Doctrine/ODM/PHPCR/Query/Query.php +++ b/lib/Doctrine/ODM/PHPCR/Query/Query.php @@ -183,7 +183,7 @@ public function getResult(int $hydrationMode = self::HYDRATE_DOCUMENT) * * Alias for execute(null, HYDRATE_PHPCR). * - * @return Collection|QueryResultInterface + * @return QueryResultInterface */ public function getPhpcrNodeResult() { diff --git a/tests/Doctrine/Tests/ODM/PHPCR/Functional/QueryBuilderTest.php b/tests/Doctrine/Tests/ODM/PHPCR/Functional/QueryBuilderTest.php index 5c597178d..bc25b56b8 100644 --- a/tests/Doctrine/Tests/ODM/PHPCR/Functional/QueryBuilderTest.php +++ b/tests/Doctrine/Tests/ODM/PHPCR/Functional/QueryBuilderTest.php @@ -282,7 +282,7 @@ public function testSelect(): void $result = $qb->getQuery()->getPhpcrNodeResult(); $rows = $result->getRows(); - $values = $rows->current()->getValues('a'); + $values = $rows->current()->getValues(); $values = $this->cleanValues($values); $this->assertInstanceOf(\Countable::class, $rows); $this->assertCount(1, $rows); @@ -305,7 +305,7 @@ public function testSelect(): void $result = $qb->getQuery()->getPhpcrNodeResult(); $rows = $result->getRows(); - $values = $rows->current()->getValues('a'); + $values = $rows->current()->getValues(); $values = $this->cleanValues($values); switch ($qb->getQuery()->getLanguage()) {