Skip to content

Commit 23cee62

Browse files
authored
php 8+ Unknown: fseek(): Passing null to parameter #2 ($offset) of type 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
1 parent 6137b7d commit 23cee62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FontLib/BinaryStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static function getTempFile($allow_memory = true) {
120120
* @return bool True if the $offset position exists in the file
121121
*/
122122
public function seek($offset) {
123-
return fseek($this->f, $offset, SEEK_SET) == 0;
123+
return fseek($this->f, (int)$offset, SEEK_SET) == 0;
124124
}
125125

126126
/**

0 commit comments

Comments
 (0)