Skip to content

Commit

Permalink
php 8+ Unknown: fseek(): Passing null to parameter #2 ($offset) of ty…
Browse files Browse the repository at this point in the history
…pe int is deprecated in FontLib\BinaryStream.php on line 123

Unknown: fseek(): Passing null to parameter #2 ($offset) of type int is deprecated in FontLib\BinaryStream.php on line 123
  • Loading branch information
BuslikDrev authored Dec 19, 2024
1 parent 6137b7d commit 23cee62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FontLib/BinaryStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 23cee62

Please sign in to comment.