We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b5030c commit 1935258Copy full SHA for 1935258
src/ApiPlatform/NormalizePropertyNameCollectionFactory.php
@@ -65,7 +65,7 @@ public function create(string $resourceClass, array $options = []): PropertyName
65
$camelized = u($property)->camel()->toString();
66
67
//If the camelized version exists, remove it from the collection
68
- $index = array_search($camelized, $properties);
+ $index = array_search($camelized, $properties, true);
69
if ($index !== false) {
70
unset($properties[$index]);
71
}
0 commit comments