diff --git a/src/File.php b/src/File.php index 7a00eb2a..722b1ca0 100644 --- a/src/File.php +++ b/src/File.php @@ -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]