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> */ - 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> */ - 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));