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
1 changed files with 1 additions and 1 deletions

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'])