Fix PHP 8.1 warning
This commit is contained in:
parent
03d21fe2d6
commit
95e61e749b
@ -214,7 +214,7 @@
|
|||||||
return self::requestValue($name, $default, $type, FILTER_VALIDATE_INT);
|
return self::requestValue($name, $default, $type, FILTER_VALIDATE_INT);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function requestValue($name, $default, $type, $filters = FILTER_DEFAULT, $flags = NULL) {
|
private static function requestValue($name, $default, $type, $filters = FILTER_DEFAULT, $flags = []) {
|
||||||
$input = filter_input($type, $name, $filters, $flags);
|
$input = filter_input($type, $name, $filters, $flags);
|
||||||
if ($input !== false && $input !== null) {
|
if ($input !== false && $input !== null) {
|
||||||
return $input;
|
return $input;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user