From 1935258978afefee2183252c12e7e5d365f08fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 23 Feb 2025 22:55:59 +0100 Subject: [PATCH] Fixed phpstan issue --- src/ApiPlatform/NormalizePropertyNameCollectionFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiPlatform/NormalizePropertyNameCollectionFactory.php b/src/ApiPlatform/NormalizePropertyNameCollectionFactory.php index 33a4ef90..c6a8220e 100644 --- a/src/ApiPlatform/NormalizePropertyNameCollectionFactory.php +++ b/src/ApiPlatform/NormalizePropertyNameCollectionFactory.php @@ -65,7 +65,7 @@ class NormalizePropertyNameCollectionFactory implements PropertyNameCollectionFa $camelized = u($property)->camel()->toString(); //If the camelized version exists, remove it from the collection - $index = array_search($camelized, $properties); + $index = array_search($camelized, $properties, true); if ($index !== false) { unset($properties[$index]); }