1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:15:55 +00:00

Address PHPStan warning in 'classes/pref/prefs.php'.

------ ------------------------------------------------
Line   classes/pref/prefs.php
------ ------------------------------------------------
1328   Expression on left side of ?? is not nullable.
------ ------------------------------------------------
This commit is contained in:
wn_
2021-11-01 20:32:43 +00:00
parent 8a920a16e7
commit a38892d5d7

View File

@@ -1325,7 +1325,7 @@ class Pref_Prefs extends Handler_Protected {
}
function activateprofile() {
$id = (int) $_REQUEST['id'] ?? 0;
$id = (int) ($_REQUEST['id'] ?? 0);
$profile = ORM::for_table('ttrss_settings_profiles')
->where('owner_uid', $_SESSION['uid'])