Skip to content

Commit b01a8d7

Browse files
enumagbsweeney
authored andcommitted
Fix PHP 8.1 deprecation
1 parent ca6ad46 commit b01a8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FontLib/Font.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static function load($file) {
2828
throw new FontNotFoundException($file);
2929
}
3030

31-
$header = file_get_contents($file, false, null, null, 4);
31+
$header = file_get_contents($file, false, null, 0, 4);
3232
$class = null;
3333

3434
switch ($header) {

0 commit comments

Comments
 (0)