From b665acd54b3e2f6c2b173a6cbbdf775158ac538e Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 12 Aug 2024 16:30:43 +1200 Subject: [PATCH] MNT Ignore pgpstan errors we can't fix --- code/LeftAndMain.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index edefe9ac9..e2ab724bb 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -825,6 +825,7 @@ public function afterHandleRequest() 'ErrorType' => $errorType, 'Message' => DBField::create_field( 'HTMLFragment', + /** @phpstan-ignore translation.key (we need the key to be dynamic here) */ _t(LeftAndMain::class . '.ErrorMessage' . $errorCode, $defaultMessage) ), ]), @@ -976,6 +977,7 @@ public static function menu_title($class = null, $localise = true) if (!$localise) { return $title; } + /** @phpstan-ignore translation.key (we need the key to be dynamic here) */ return i18n::_t("{$class}.MENUTITLE", $title); } @@ -1878,6 +1880,7 @@ public function getHelpLinks() $translationKey = str_replace(' ', '', $key ?? ''); $formattedLinks[] = [ + /** @phpstan-ignore translation.key (we need the key to be dynamic here) */ 'Title' => _t(__CLASS__ . '.' . $translationKey, $key), 'URL' => $value ];