diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-03-26 17:11:56 +0000 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-03-26 17:11:56 +0000 |
| commit | 435c321caaf3ae7aca936f175348d9efb40d6419 (patch) | |
| tree | d64d45215fa331dca8c489e9b9fbbc9e04cb5eda /classes/UserHelper.php | |
| parent | fea3089bde5b4abfdcc8b5a0314a7f82fcf25bea (diff) | |
| parent | de00a095387499cdb5c8eb9c0ab721d67bd0b3fa (diff) | |
Merge branch 'feature/php84-explicit-nullable-params' into 'master'
Make implicitly nullable parameters explicitly nullable.
See merge request tt-rss/tt-rss!26
Diffstat (limited to 'classes/UserHelper.php')
| -rw-r--r-- | classes/UserHelper.php | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |