Fix PHP 8.1 warning

This commit is contained in:
Bartek Fabiszewski 2022-03-01 16:25:04 +01:00
parent 03d21fe2d6
commit 95e61e749b

View File

@ -214,7 +214,7 @@
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);
if ($input !== false && $input !== null) {
return $input;