Skip to content

Commit e0dca8e

Browse files
JarJakdunglas
authored andcommitted
Update filters.md
fix example in docs
1 parent 5cef6d6 commit e0dca8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/filters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,9 @@ use Symfony\Component\HttpFoundation\Request;
515515
516516
final class CustomOrderFilter extends OrderFilter
517517
{
518-
protected function extractProperties(Request $request)
518+
protected function extractProperties(Request $request): array
519519
{
520-
$filter = $request->query->get('filter[order]', []);
520+
return $request->query->get('filter[order]', []);
521521
}
522522
}
523523
```

0 commit comments

Comments
 (0)