diff --git a/src/Forms/HTMLEditor/TinyMCEConfig.php b/src/Forms/HTMLEditor/TinyMCEConfig.php
index 26f408ff854..23eab0c449e 100644
--- a/src/Forms/HTMLEditor/TinyMCEConfig.php
+++ b/src/Forms/HTMLEditor/TinyMCEConfig.php
@@ -731,6 +731,7 @@ private function initImageSizePresets(array &$settings): void
}
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'] : ''
diff --git a/src/ORM/DataObject.php b/src/ORM/DataObject.php
index e57fae5aa3d..b9cb0b57bde 100644
--- a/src/ORM/DataObject.php
+++ b/src/ORM/DataObject.php
@@ -3891,6 +3891,7 @@ public function fieldLabels($includerelations = true)
}
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)
diff --git a/src/Security/PasswordValidator.php b/src/Security/PasswordValidator.php
index 17971187762..62288201dc0 100644
--- a/src/Security/PasswordValidator.php
+++ b/src/Security/PasswordValidator.php
@@ -203,6 +203,7 @@ public function validate($password, $member)
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,