From 6e06bb2068890af01c4d1c58ce9b63d400032948 Mon Sep 17 00:00:00 2001 From: Steven Lewis Date: Tue, 12 Nov 2024 17:20:44 +0000 Subject: [PATCH] Compatibility with php 8.4 Deprecate implicitly nullable parameter types https://wiki.php.net/rfc/deprecate-implicitly-nullable-types --- src/CountryLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CountryLoader.php b/src/CountryLoader.php index 115e43d..61a1cb6 100644 --- a/src/CountryLoader.php +++ b/src/CountryLoader.php @@ -122,7 +122,7 @@ protected static function operatorForWhere($key, $operator, $value) * * @return array */ - protected static function filter($items, callable $callback = null) + protected static function filter($items, ?callable $callback = null) { if ($callback) { return array_filter($items, $callback, ARRAY_FILTER_USE_BOTH);