Skip to content

Commit 03310c6

Browse files
author
Admin
committed
Add Request::getFiltered(string $key, mixed $default = null, string|int $filter = \FILTER_DEFAULT, array|int $options= []) macro
1 parent 2cf6397 commit 03310c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Providers/CrudProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function (...$arguments): Model {
7474
'getFiltered',
7575
/**
7676
* @param string|int $filter can be 'alpha', 'alnum', 'digits', 'int', 'boolean' or an int flag
77-
* @see \filter_var() for $filter and $options
77+
* @see ParameterBag::filter(), \filter_var() for $filter and $options
7878
* @see ParameterBag::getAlpha()
7979
* @see ParameterBag::getAlnum()
8080
* @see ParameterBag::getDigits()
@@ -84,7 +84,7 @@ function (...$arguments): Model {
8484
function (
8585
string $key,
8686
mixed $default = null,
87-
string|int $filter = '',
87+
string|int $filter = \FILTER_DEFAULT,
8888
array|int $options = [],
8989
): mixed {
9090
/** @var Request $this */

0 commit comments

Comments
 (0)