From f436b43c82e6b9ddf680989cb1ac2e024ca28de9 Mon Sep 17 00:00:00 2001 From: darodi <4682830+darodi@users.noreply.github.com> Date: Thu, 22 Oct 2026 20:35:47 +0000 Subject: [PATCH] 32-bit systems provide a string for BIGINT (#9486) Fix #9485 --- app/Models/Category.php | 6 +++++- app/Models/Feed.php | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/Models/Category.php b/app/Models/Category.php index f091e2d2d..7a5d529e3 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -73,7 +73,11 @@ class FreshRSS_Category extends Minz_Model { return $this->error; } - public function _error(bool|int $value): void { + /** + * @param bool|int|numeric-string $value + * 32-bit systems provide a string and will fail in year 2038 + */ + public function _error(bool|int|string $value): void { $this->error = (bool)$value; } public function isDefault(): bool { diff --git a/app/Models/Feed.php b/app/Models/Feed.php index f00456666..06a72ec12 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -564,8 +564,12 @@ class FreshRSS_Feed extends Minz_Model { $this->httpAuth = $value; } - public function _error(int $value): void { - $this->error = $value; + /** + * @param int|numeric-string $value + * 32-bit systems provide a string and will fail in year 2038 + */ + public function _error(int|string $value): void { + $this->error = (int)$value; } public function _mute(bool $value): void { $this->mute = $value;