Skip to content

Commit ff30916

Browse files
8ctopusbsweeney
authored andcommitted
Fix php 8.4 deprecation nullable parameter must be explicitly declared
1 parent 991d6a9 commit ff30916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FontLib/TrueType/File.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class File extends BinaryStream {
100100
"Ccaron", "ccaron", "dmacron"
101101
);
102102

103-
private function uniord (string $c, string $encoding = null) {
103+
private function uniord (string $c, ?string $encoding = null) {
104104
if (function_exists("mb_ord")) {
105105
if (PHP_VERSION_ID < 80000 && $encoding === null) {
106106
// in PHP < 8 the encoding argument, if supplied, must be a valid encoding

0 commit comments

Comments
 (0)