Skip to content

Commit

Permalink
fix phpstan error (#5155)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jun 11, 2022
1 parent b183b85 commit d324493
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .tools/phpstan/baseline.neon
Expand Up @@ -70,11 +70,6 @@ parameters:
count: 1
path: ../../redaxo/src/addons/structure/pages/index.php

-
message: "#^Variable \\$prevCtype in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: ../../redaxo/src/addons/structure/plugins/content/lib/article_content_base.php

-
message: "#^Right side of && is always true\\.$#"
count: 1
Expand Down
Expand Up @@ -703,7 +703,7 @@ private function renderSlices(string $articleLimit, string $sliceLimit): void
if ('edit' != $this->mode && !$this->eval) {
if (0 == $i) {
$articleContent = "<?php\n\nif (\$this->ctype == '".$sliceCtypeId."' || \$this->ctype == '-1') {\n";
} elseif (isset($prevCtype) && $sliceCtypeId != $prevCtype) {
} elseif (null !== $prevCtype && $sliceCtypeId != $prevCtype) {
// ----- zwischenstand: ctype .. wenn ctype neu dann if
$articleContent .= "}\n\nif (\$this->ctype == '".$sliceCtypeId."' || \$this->ctype == '-1') {\n";
}
Expand Down

0 comments on commit d324493

Please sign in to comment.