MNT Ignore phpstan errors we can't fix. (#11326)

This commit is contained in:
Guy Sartorelli 2024-08-06 16:09:11 +12:00 committed by GitHub
parent 9fae48bbd7
commit 485bbc2774
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -731,6 +731,7 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
}
if (isset($preset['i18n'])) {
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
$preset['text'] = _t(
$preset['i18n'],
isset($preset['text']) ? $preset['text'] : ''

View File

@ -3891,6 +3891,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
}
foreach ($types as $type => $attrs) {
foreach ($attrs as $name => $spec) {
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
$autoLabels[$name] = _t(
"{$ancestorClass}.{$type}_{$name}",
FormField::name_to_label($name)

View File

@ -203,6 +203,7 @@ class PasswordValidator
if (preg_match($tests[$name] ?? '', $password ?? '')) {
continue;
}
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
$missedTests[] = _t(
__CLASS__ . '.STRENGTHTEST' . strtoupper($name ?? ''),
$name,