diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index 08823793d7ab04bd2a2a5c5b021d38f14b7e8473..6a79a499b58b5b4cdcdc3fc028e8dfab9f430988 100644 --- a/Build/phpstan/phpstan-baseline.neon +++ b/Build/phpstan/phpstan-baseline.neon @@ -1415,16 +1415,6 @@ parameters: count: 8 path: ../../typo3/sysext/frontend/Classes/Imaging/GifBuilder.php - - - message: "#^Negated boolean expression is always false\\.$#" - count: 3 - path: ../../typo3/sysext/frontend/Classes/Imaging/GifBuilder.php - - - - message: "#^Result of && is always false\\.$#" - count: 3 - path: ../../typo3/sysext/frontend/Classes/Imaging/GifBuilder.php - - message: "#^Cannot unset offset 'parameter\\.' on array\\{parameter\\: mixed\\}\\.$#" count: 1 diff --git a/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php b/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php index a8871e5d156237b1e42e61f408ab31e061ea19eb..16a7c262c8528327c7fc0b55b0251c2b41d9ed78 100644 --- a/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php +++ b/typo3/sysext/frontend/Classes/Imaging/GifBuilder.php @@ -547,7 +547,7 @@ class GifBuilder $isStdWrapped = []; foreach ($conf['shadow.'] as $key => $value) { $parameter = rtrim($key, '.'); - if (!$isStdWrapped[$parameter] && isset($conf[$parameter . '.'])) { + if (!($isStdWrapped[$parameter] ?? false) && isset($conf[$parameter . '.'])) { $conf['shadow.'][$parameter] = $this->cObj->stdWrapValue($parameter, $conf); $isStdWrapped[$parameter] = 1; } @@ -558,7 +558,7 @@ class GifBuilder $isStdWrapped = []; foreach ($conf['emboss.'] as $key => $value) { $parameter = rtrim($key, '.'); - if (!$isStdWrapped[$parameter] && isset($conf[$parameter . '.'])) { + if (!($isStdWrapped[$parameter] ?? false) && isset($conf[$parameter . '.'])) { $conf['emboss.'][$parameter] = $this->cObj->stdWrapValue($parameter, $conf); $isStdWrapped[$parameter] = 1; } @@ -569,7 +569,7 @@ class GifBuilder $isStdWrapped = []; foreach ($conf['outline.'] as $key => $value) { $parameter = rtrim($key, '.'); - if (!$isStdWrapped[$parameter] && isset($conf[$parameter . '.'])) { + if (!($isStdWrapped[$parameter] ?? false) && isset($conf[$parameter . '.'])) { $conf['outline.'][$parameter] = $this->cObj->stdWrapValue($parameter, $conf); $isStdWrapped[$parameter] = 1; }