From 56c9064de819e40b033f2c0ef901b81b6b956719 Mon Sep 17 00:00:00 2001 From: Zacharias Luiten Date: Fri, 15 Jan 2021 15:17:48 +0100 Subject: [PATCH 1/2] Should extend from doctrine-laminas-hydrator AbstractCollectionStrategy base class. Signed-off-by: Zacharias Luiten --- src/Hydrator/Strategy/CollectionLinkHydratorV3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hydrator/Strategy/CollectionLinkHydratorV3.php b/src/Hydrator/Strategy/CollectionLinkHydratorV3.php index 481618b3..883e926f 100644 --- a/src/Hydrator/Strategy/CollectionLinkHydratorV3.php +++ b/src/Hydrator/Strategy/CollectionLinkHydratorV3.php @@ -8,7 +8,7 @@ namespace Laminas\ApiTools\Doctrine\QueryBuilder\Hydrator\Strategy; -use DoctrineModule\Stdlib\Hydrator\Strategy\AbstractCollectionStrategy; +use Doctrine\Laminas\Hydrator\Strategy\AbstractCollectionStrategy; use Laminas\ApiTools\Hal\Link\Link; use Laminas\Filter\FilterChain; use Laminas\Hydrator\Strategy\StrategyInterface; From 3c391a0bae605cc98b6d869eee0ae216f9463d16 Mon Sep 17 00:00:00 2001 From: Zacharias Luiten Date: Mon, 16 Aug 2021 10:57:35 +0200 Subject: [PATCH 2/2] Fix FQCN casing Signed-off-by: Zacharias Luiten --- test/Hydrator/Strategy/CollectionLinkTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Hydrator/Strategy/CollectionLinkTest.php b/test/Hydrator/Strategy/CollectionLinkTest.php index 5e226d37..63c543da 100644 --- a/test/Hydrator/Strategy/CollectionLinkTest.php +++ b/test/Hydrator/Strategy/CollectionLinkTest.php @@ -8,7 +8,7 @@ namespace LaminasTest\ApiTools\Doctrine\QueryBuilder\Hydrator\Strategy; -use laminas\apitools\doctrine\querybuilder\hydrator\strategy\collectionlink; +use Laminas\ApiTools\Doctrine\QueryBuilder\Hydrator\Strategy\Collectionlink; use Laminas\ServiceManager\ServiceManager; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -22,7 +22,7 @@ class CollectionLinkTest extends TestCase /** @var stdClass|MockObject */ private $mockValue; - /** @var collectionlink */ + /** @var Collectionlink */ private $hydrator; public function setUp(): void @@ -70,7 +70,7 @@ public function setUp(): void $mock = $this->prophesize(ServiceManager::class); $mock->get('config')->willReturn($config); - $this->hydrator = new collectionlink(); + $this->hydrator = new Collectionlink(); $this->hydrator->setServiceManager($mock->reveal()); }