Skip to content

Commit

Permalink
MNT Ignore phpstan errors we can't fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 12, 2024
1 parent b363901 commit ab45d7e
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 @@ -1070,6 +1070,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 ab45d7e

Please sign in to comment.