From 9076aa0067a8092afb07ed5a40609d750f166702 Mon Sep 17 00:00:00 2001 From: julianzangl Date: Fri, 7 Jul 2023 12:08:28 +0200 Subject: [PATCH] [BUGFIX] if condition is always true --- Classes/ViewHelpers/SkillGroupingViewHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/ViewHelpers/SkillGroupingViewHelper.php b/Classes/ViewHelpers/SkillGroupingViewHelper.php index e96da75..2a2fdf4 100644 --- a/Classes/ViewHelpers/SkillGroupingViewHelper.php +++ b/Classes/ViewHelpers/SkillGroupingViewHelper.php @@ -47,7 +47,7 @@ class SkillGroupingViewHelper extends AbstractViewHelper public function initializeArguments() { $this->registerArgument('skills', 'array', 'An array of skills to group', false, []); - $this->registerArgument('skillSet', SkillSet::class, 'The skills of this skill set will be grouped', false, []); + $this->registerArgument('skillSet', SkillSet::class, 'The skills of this skill set will be grouped'); $this->registerArgument('as', 'string', 'The name of the iteration variable', true); } @@ -59,7 +59,7 @@ class SkillGroupingViewHelper extends AbstractViewHelper { /** @var Skill[] $skills */ $skills = $arguments['skills']; - /** @var SkillSet $skillSet */ + /** @var SkillSet|null $skillSet */ $skillSet = $arguments['skillSet']; $as = $arguments['as'];