From 95e61e749b0f0d35ef537813d102d30b79aeb734 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Tue, 1 Mar 2022 16:25:04 +0100 Subject: [PATCH] Fix PHP 8.1 warning --- helpers/utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/utils.php b/helpers/utils.php index 38bca7a..402e06f 100644 --- a/helpers/utils.php +++ b/helpers/utils.php @@ -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;