mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MNT Ignore phpstan errors we can't fix. (#11326)
This commit is contained in:
parent
9fae48bbd7
commit
485bbc2774
@ -731,6 +731,7 @@ class TinyMCEConfig extends HTMLEditorConfig implements i18nEntityProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($preset['i18n'])) {
|
if (isset($preset['i18n'])) {
|
||||||
|
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
|
||||||
$preset['text'] = _t(
|
$preset['text'] = _t(
|
||||||
$preset['i18n'],
|
$preset['i18n'],
|
||||||
isset($preset['text']) ? $preset['text'] : ''
|
isset($preset['text']) ? $preset['text'] : ''
|
||||||
|
@ -3891,6 +3891,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
}
|
}
|
||||||
foreach ($types as $type => $attrs) {
|
foreach ($types as $type => $attrs) {
|
||||||
foreach ($attrs as $name => $spec) {
|
foreach ($attrs as $name => $spec) {
|
||||||
|
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
|
||||||
$autoLabels[$name] = _t(
|
$autoLabels[$name] = _t(
|
||||||
"{$ancestorClass}.{$type}_{$name}",
|
"{$ancestorClass}.{$type}_{$name}",
|
||||||
FormField::name_to_label($name)
|
FormField::name_to_label($name)
|
||||||
|
@ -203,6 +203,7 @@ class PasswordValidator
|
|||||||
if (preg_match($tests[$name] ?? '', $password ?? '')) {
|
if (preg_match($tests[$name] ?? '', $password ?? '')) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
|
||||||
$missedTests[] = _t(
|
$missedTests[] = _t(
|
||||||
__CLASS__ . '.STRENGTHTEST' . strtoupper($name ?? ''),
|
__CLASS__ . '.STRENGTHTEST' . strtoupper($name ?? ''),
|
||||||
$name,
|
$name,
|
||||||
|
Loading…
Reference in New Issue
Block a user