Skip to content

Commit

Permalink
MNT Ignore pgpstan errors we can't fix (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 13, 2024
1 parent b3eeb08 commit 88a3d8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/LeftAndMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
),
]),
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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
];
Expand Down

0 comments on commit 88a3d8e

Please sign in to comment.