diff options
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 2454e4831..bc5ed2279 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -546,7 +546,12 @@ HTML; $this->date = $value > 1 ? $value : time(); } - public function _lastSeen(int $value): void { + /** + * @param int|numeric-string $value + * 32-bit systems provide a string and will fail in year 2038 + */ + public function _lastSeen(int|string $value): void { + $value = (int)$value; $this->lastSeen = $value > 0 ? $value : 0; } |
