From 23cee62c1bddeef91335e9f7a00e391cc4f8c49e Mon Sep 17 00:00:00 2001 From: BuslikDrev <32706609+BuslikDrev@users.noreply.github.com> Date: Thu, 19 Dec 2024 08:46:02 +0300 Subject: [PATCH] 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 --- src/FontLib/BinaryStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FontLib/BinaryStream.php b/src/FontLib/BinaryStream.php index cc5e72c..3b1a53f 100644 --- a/src/FontLib/BinaryStream.php +++ b/src/FontLib/BinaryStream.php @@ -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; } /**