Skip to content

Commit

Permalink
Fix php 8.4 deprecation nullable parameter must be explicitly declared
Browse files Browse the repository at this point in the history
  • Loading branch information
8ctopus authored and bsweeney committed Dec 2, 2024
1 parent 991d6a9 commit ff30916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FontLib/TrueType/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class File extends BinaryStream {
"Ccaron", "ccaron", "dmacron"
);

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

0 comments on commit ff30916

Please sign in to comment.