From 6b6560142ae82c3a572edd19343d7c4a1eb713a3 Mon Sep 17 00:00:00 2001 From: Julien RAVIA Date: Wed, 12 Nov 2025 13:55:01 +0000 Subject: [PATCH] fix php 84 deprecations --- Tests/Units/EntityRepositoryTest.php | 4 ++-- Tests/Units/Model/SerializerTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/Units/EntityRepositoryTest.php b/Tests/Units/EntityRepositoryTest.php index 81c4304..b007923 100644 --- a/Tests/Units/EntityRepositoryTest.php +++ b/Tests/Units/EntityRepositoryTest.php @@ -792,8 +792,8 @@ public function testUpdatingInstanceDoesGetDataFromUnitOfWorkWithQueryParam(): v * } */ private function getRepository( - RestMapping $mapping = null, - string $modelName = null, + ?RestMapping $mapping = null, + ?string $modelName = null, bool $mockHydrator = false, bool $mockUnitOfWork = false ): array { diff --git a/Tests/Units/Model/SerializerTest.php b/Tests/Units/Model/SerializerTest.php index e55376d..63d49df 100644 --- a/Tests/Units/Model/SerializerTest.php +++ b/Tests/Units/Model/SerializerTest.php @@ -1185,7 +1185,7 @@ private function createNewCartItemDetail(): \Mapado\RestClientSdk\Tests\Model\Js return $item; } - private function createNewInstance(Mapping $mapping = null): void + private function createNewInstance(?Mapping $mapping = null): void { $mapping = $mapping ?: $this->getMapping(); $this->unitOfWork = new UnitOfWork($mapping);