From e447930fd7fe31248238fbfc3b9497572981eb59 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:00:54 +1200 Subject: [PATCH] MNT Ignore phpstan errors we can't fix (#627) --- 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]