Skip to content

Commit

Permalink
Update Font.php
Browse files Browse the repository at this point in the history
Specified wrong constant for RecursiveIteratorIterator
  • Loading branch information
oleibman authored Dec 18, 2023
1 parent 722600c commit 551d69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Shared/Font.php
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ private static function findFontFile(string $startDirectory, string $desiredFont
new RecursiveIteratorIterator(
$it,
RecursiveIteratorIterator::LEAVES_ONLY,
RecursiveIteratorIterator::CHILD_FIRST
RecursiveIteratorIterator::CATCH_GET_CHILD
) as $file
) {
if (basename($file) === $desiredFont) {
Expand Down

0 comments on commit 551d69c

Please sign in to comment.