update lock clucknut
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s
Build, Push and Deploy / build-and-push (push) Successful in 3m14s
Build, Push and Deploy / deploy-staging (push) Successful in 25s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-18 20:32:18 +07:00
parent 4554035227
commit dcaf267458
3359 changed files with 153185 additions and 205489 deletions

View File

@@ -120,7 +120,7 @@ public static function getTempFile($allow_memory = true) {
* @return bool True if the $offset position exists in the file
*/
public function seek($offset) {
return fseek($this->f, $offset, SEEK_SET) == 0;
return fseek($this->f, (int)$offset, SEEK_SET) == 0;
}
/**
@@ -158,7 +158,11 @@ public function write($data, $length = null) {
}
public function readUInt8() {
return ord($this->read(1));
$byte = $this->read(1);
if ($byte === '') {
return 0;
}
return ord($byte);
}
public function readUInt8Many($count) {

View File

@@ -69,28 +69,34 @@ function getFont($fontId) {
return $this->collection[$fontId] = $font;
}
#[\ReturnTypeWillChange]
function current() {
return $this->getFont($this->position);
}
#[\ReturnTypeWillChange]
function key() {
return $this->position;
}
#[\ReturnTypeWillChange]
function next() {
return ++$this->position;
}
#[\ReturnTypeWillChange]
function rewind() {
$this->position = 0;
}
#[\ReturnTypeWillChange]
function valid() {
$this->parse();
return isset($this->collectionOffsets[$this->position]);
}
#[\ReturnTypeWillChange]
function count() {
$this->parse();