32-bit systems provide a string for BIGINT (#9486)

Fix #9485
This commit is contained in:
darodi authored and GitHub committed 2026-10-22 22:35:47 +02:00
1 parent bf0bedae1c
commit f436b43c82
2 files changed
+11 -3

No files matched your search

+5 -1
View File
@@ -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 {
+6 -2
View File
@@ -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;