aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Category.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Category.php')
-rw-r--r--app/Models/Category.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php
index da902d6bd..221e8644d 100644
--- a/app/Models/Category.php
+++ b/app/Models/Category.php
@@ -58,9 +58,15 @@ class FreshRSS_Category extends Minz_Model {
public function lastUpdate(): int {
return $this->lastUpdate;
}
- public function _lastUpdate(int $value): void {
- $this->lastUpdate = $value;
+
+ /**
+ * @param int|numeric-string $value
+ * 32-bit systems provide a string and will fail in year 2038
+ */
+ public function _lastUpdate(int|string $value): void {
+ $this->lastUpdate = (int)$value;
}
+
public function inError(): bool {
return $this->error;
}