summaryrefslogtreecommitdiff
path: root/app/Models/EntryDAOSQLite.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-08-20 19:44:25 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-20 19:44:25 +0200
commit0ec3874620c03b03a5cb462d99d710bd802d06f9 (patch)
tree30877452beddf07ff0ab4d5560dcb881c093f8f5 /app/Models/EntryDAOSQLite.php
parent0ec65788f9a2fb3ab389d22c723e6b36d798a806 (diff)
Fix PHP 7.0 warning (#4514)
Regression from https://github.com/FreshRSS/FreshRSS/pull/4202 > Warning: Declaration of FreshRSS_EntryDAOSQLite::markRead($ids, $is_read = true) should be compatible with FreshRSS_EntryDAO::markRead($ids, bool $is_read = true) in /var/www/FreshRSS/app/Models/EntryDAOSQLite.php on line 3
Diffstat (limited to 'app/Models/EntryDAOSQLite.php')
-rw-r--r--app/Models/EntryDAOSQLite.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.php
index b1ab6601e..8039581e6 100644
--- a/app/Models/EntryDAOSQLite.php
+++ b/app/Models/EntryDAOSQLite.php
@@ -115,7 +115,7 @@ DROP TABLE IF EXISTS `tmp`;
* @param boolean $is_read
* @return integer|false affected rows
*/
- public function markRead($ids, $is_read = true) {
+ public function markRead($ids, bool $is_read = true) {
FreshRSS_UserDAO::touch();
if (is_array($ids)) { //Many IDs at once (used by API)
//if (true) { //Speed heuristics //TODO: Not implemented yet for SQLite (so always call IDs one by one)