Switch 2 more implicitly nullable params to explicitly nullable.

Missed in https://gitlab.tt-rss.org/tt-rss/tt-rss/-/merge_requests/26 .

https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
This commit is contained in:
wn_ 2024-04-16 14:23:07 +00:00
parent ae5e7568f5
commit ac55a15c84
1 changed files with 2 additions and 2 deletions

View File

@ -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));