diff options
author | Andrew Dolgov <[email protected]> | 2024-04-16 14:29:02 +0000 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2024-04-16 14:29:02 +0000 |
commit | b1e3d660e41bcb9576ec6ea58727dca4366708b5 (patch) | |
tree | ec6432cd30248ec60dd75525af648c5cac473e44 /classes/Prefs.php | |
parent | ae5e7568f59b9ecbefe0c86ffc7d314fd78d114c (diff) | |
parent | ac55a15c8423cd8ab1535062db7093bf32618a33 (diff) |
Merge branch 'feature/php84-explicit-nullable-params-2' into 'master'
Switch 2 more implicitly nullable params to explicitly nullable.
See merge request tt-rss/tt-rss!27
Diffstat (limited to 'classes/Prefs.php')
-rw-r--r-- | classes/Prefs.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Prefs.php b/classes/Prefs.php index e315802a9..f778f0f84 100644 --- a/classes/Prefs.php +++ b/classes/Prefs.php @@ -193,14 +193,14 @@ class Prefs { /** * @return array<int, array<string, bool|int|null|string>> */ - static function get_all(int $owner_uid, int $profile_id = null) { + static function get_all(int $owner_uid, ?int $profile_id = null) { return self::get_instance()->_get_all($owner_uid, $profile_id); } /** * @return array<int, array<string, bool|int|null|string>> */ - private function _get_all(int $owner_uid, int $profile_id = null) { + private function _get_all(int $owner_uid, ?int $profile_id = null) { $rv = []; $ref = new ReflectionClass(get_class($this)); |