From de00a095387499cdb5c8eb9c0ab721d67bd0b3fa Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 26 Mar 2024 16:38:05 +0000 Subject: Make implicit nullable parameters explicitly nullable. This is to address a deprecation planned for PHP 8.4. https://wiki.php.net/rfc/deprecate-implicitly-nullable-types --- classes/UserHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/UserHelper.php') diff --git a/classes/UserHelper.php b/classes/UserHelper.php index b47f2853e..7cc7b3150 100644 --- a/classes/UserHelper.php +++ b/classes/UserHelper.php @@ -58,7 +58,7 @@ class UserHelper { } } - static function authenticate(string $login = null, string $password = null, bool $check_only = false, string $service = null): bool { + static function authenticate(?string $login = null, ?string $password = null, bool $check_only = false, ?string $service = null): bool { if (!Config::get(Config::SINGLE_USER_MODE)) { $user_id = false; $auth_module = false; @@ -130,7 +130,7 @@ class UserHelper { } } - static function load_user_plugins(int $owner_uid, PluginHost $pluginhost = null): void { + static function load_user_plugins(int $owner_uid, ?PluginHost $pluginhost = null): void { if (!$pluginhost) $pluginhost = PluginHost::getInstance(); -- cgit v1.2.3-54-g00ecf