aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-11-18 23:21:20 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-18 23:21:20 +0100
commitb65ea979010eb488cc9c1fb1d0f082e868c191d5 (patch)
treebe2c1b06aa5fcea8d33d43ba76acbfff3e4f0f0e /app/Models/Entry.php
parent445e49db15ea7ae41dc55efea2d67903557f9182 (diff)
Fix PHP 7 compatibility strict_types (#5893)
* Fix PHP 7 compatibility https://github.com/FreshRSS/FreshRSS/discussions/5892 * Multiple PHP 7 fixes * PHPStan
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index e19a637d7..476c5a8cf 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -52,6 +52,8 @@ class FreshRSS_Entry extends Minz_Model {
/** @param array{'id'?:string,'id_feed'?:int,'guid'?:string,'title'?:string,'author'?:string,'content'?:string,'link'?:string,'date'?:int|string,'lastSeen'?:int,
* 'hash'?:string,'is_read'?:bool|int,'is_favorite'?:bool|int,'tags'?:string|array<string>,'attributes'?:string,'thumbnail'?:string,'timestamp'?:string} $dao */
public static function fromArray(array $dao): FreshRSS_Entry {
+ FreshRSS_DatabaseDAO::pdoInt($dao, ['id_feed', 'date', 'lastSeen', 'is_read', 'is_favorite']);
+
if (empty($dao['content'])) {
$dao['content'] = '';
}