Skip to content

Commit

Permalink
MNT Ignore phpstan errors we can't fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 6, 2024
1 parent a8d0d1e commit 7a8887f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Forms/HTMLEditor/TinyMCEConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] : ''
Expand Down
1 change: 1 addition & 0 deletions src/ORM/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/Security/PasswordValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7a8887f

Please sign in to comment.