Skip to content

Commit 1935258

Browse files
committed
Fixed phpstan issue
1 parent 2b5030c commit 1935258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiPlatform/NormalizePropertyNameCollectionFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function create(string $resourceClass, array $options = []): PropertyName
6565
$camelized = u($property)->camel()->toString();
6666

6767
//If the camelized version exists, remove it from the collection
68-
$index = array_search($camelized, $properties);
68+
$index = array_search($camelized, $properties, true);
6969
if ($index !== false) {
7070
unset($properties[$index]);
7171
}

0 commit comments

Comments
 (0)