diff options
| author | 2023-03-08 12:39:04 +0100 | |
|---|---|---|
| committer | 2023-03-08 12:39:04 +0100 | |
| commit | 23447f1221713fca92824ac098469fa69efdad03 (patch) | |
| tree | 994116359ceafa67d91a2d8d607b7b6380779e2e /app/Controllers/entryController.php | |
| parent | 6c01d051711b7828cadc03a528537e416b941f47 (diff) | |
Type hinting for Factory.php up to PHPStan 9 (#5090)
* Type hinting for Factory.php up to PHPStan 8
* Fix phpstan collateral
* revert test
* remarrk from Alkarex
* remark from Alkarex
* Update app/Controllers/entryController.php
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
* Remarque's from Alkarex
* Remarque's from Alkarex
* Remarque's from Alkarex
---------
Co-authored-by: Luc <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Controllers/entryController.php')
| -rw-r--r-- | app/Controllers/entryController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php index 6750de43b..165e1437e 100644 --- a/app/Controllers/entryController.php +++ b/app/Controllers/entryController.php @@ -75,7 +75,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { $entryDAO->markReadEntries($id_max, false, 0, null, 0, $is_read); } else { $type_get = $get[0]; - $get = substr($get, 2); + $get = (int)substr($get, 2); switch($type_get) { case 'c': $entryDAO->markReadCat($get, $id_max, FreshRSS_Context::$search, FreshRSS_Context::$state, $is_read); @@ -93,7 +93,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { $entryDAO->markReadTag($get, $id_max, FreshRSS_Context::$search, FreshRSS_Context::$state, $is_read); break; case 'T': - $entryDAO->markReadTag('', $id_max, FreshRSS_Context::$search, FreshRSS_Context::$state, $is_read); + $entryDAO->markReadTag(0, $id_max, FreshRSS_Context::$search, FreshRSS_Context::$state, $is_read); break; } |
