Skip to content

Commit

Permalink
Merge branch '2.2' into 2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 14, 2024
2 parents 9e86beb + e447930 commit 2dfcd3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ public static function get_file_type($filename)
$extension = strtolower(File::get_file_extension($filename) ?? '');

if (isset($file_types[$extension])) {
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
return _t(
__CLASS__ . '.' . ucfirst($extension ?? '') . 'Type',
$file_types[$extension]
Expand Down

0 comments on commit 2dfcd3f

Please sign in to comment.