Fixed phpstan issue

This commit is contained in:
Jan Böhmer 2025-02-23 22:55:59 +01:00
parent 2b5030c69f
commit 1935258978

View file

@ -65,7 +65,7 @@ class NormalizePropertyNameCollectionFactory implements PropertyNameCollectionFa
$camelized = u($property)->camel()->toString(); $camelized = u($property)->camel()->toString();
//If the camelized version exists, remove it from the collection //If the camelized version exists, remove it from the collection
$index = array_search($camelized, $properties); $index = array_search($camelized, $properties, true);
if ($index !== false) { if ($index !== false) {
unset($properties[$index]); unset($properties[$index]);
} }