diff --git a/src/File.php b/src/File.php index b9d10848..0ee40c14 100644 --- a/src/File.php +++ b/src/File.php @@ -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]