A free, self-hostable news aggregator…
32-bit systems provide a string for BIGINT (#9486)
darodif436b43c82e6
diff --git a/app/Models/Category.php b/app/Models/Category.phpindex 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.phpindex 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;