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 ];