From 6668074f2f7ee67366f204b58345045304104745 Mon Sep 17 00:00:00 2001 From: aaa2000 Date: Mon, 13 Oct 2025 20:04:51 +0200 Subject: [PATCH] chore: fix phpstan build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix phpstan errors ``` ------ -------------------------------- Line AbstractItemNormalizerTest.php ------ -------------------------------- 1011 Invalid array key type float. 🪪 array.invalidKey 1075 Invalid array key type float. 🪪 array.invalidKey ``` --- src/Serializer/Tests/AbstractItemNormalizerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Serializer/Tests/AbstractItemNormalizerTest.php b/src/Serializer/Tests/AbstractItemNormalizerTest.php index 497dd3ecdd..8d061423a9 100644 --- a/src/Serializer/Tests/AbstractItemNormalizerTest.php +++ b/src/Serializer/Tests/AbstractItemNormalizerTest.php @@ -1008,7 +1008,7 @@ public function testDenormalizeWritableLinks(): void 'name' => 'foo', 'relatedDummy' => ['foo' => 'bar'], 'relatedDummies' => [['bar' => 'baz']], - 'relatedDummiesWithUnionTypes' => [0 => ['bar' => 'qux'], 1. => ['bar' => 'quux']], + 'relatedDummiesWithUnionTypes' => [0 => ['bar' => 'qux'], 1 => ['bar' => 'quux']], ]; $relatedDummy1 = new RelatedDummy(); @@ -1072,7 +1072,7 @@ public function testDenormalizeWritableLinks(): void $propertyAccessorProphecy->setValue($actual, 'name', 'foo')->shouldHaveBeenCalled(); $propertyAccessorProphecy->setValue($actual, 'relatedDummy', $relatedDummy1)->shouldHaveBeenCalled(); $propertyAccessorProphecy->setValue($actual, 'relatedDummies', [$relatedDummy2])->shouldHaveBeenCalled(); - $propertyAccessorProphecy->setValue($actual, 'relatedDummiesWithUnionTypes', [0 => $relatedDummy3, 1. => $relatedDummy4])->shouldHaveBeenCalled(); + $propertyAccessorProphecy->setValue($actual, 'relatedDummiesWithUnionTypes', [0 => $relatedDummy3, 1 => $relatedDummy4])->shouldHaveBeenCalled(); } public function testBadRelationType(): void