[BUGFIX] if condition is always true

This commit is contained in:
julianzangl 2023-07-07 12:08:28 +02:00
parent 60931303c0
commit 9076aa0067

View file

@ -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'];