From ab45d7e5c9a08293ec185cfa267ef9d378908e55 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 13 Aug 2024 10:01:39 +1200 Subject: [PATCH] MNT Ignore phpstan errors we can't fix --- src/File.php | 1 + 1 file changed, 1 insertion(+) 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]