Skip to content

Commit 0da690d

Browse files
authored
Fix associative array on filtered properties (#488)
1 parent 7e2e026 commit 0da690d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AllowedFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function hasDefault(): bool
145145
protected function resolveValueForFiltering($value)
146146
{
147147
if (is_array($value)) {
148-
$remainingProperties = array_diff($value, $this->ignored->toArray());
148+
$remainingProperties = array_diff_assoc($value, $this->ignored->toArray());
149149

150150
return ! empty($remainingProperties) ? $remainingProperties : null;
151151
}

0 commit comments

Comments
 (0)