Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Ignore pgpstan errors we can't fix #1808

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading