`RequirementsRenderer`: Cast `$currentSet` to `RequirementSet` in `beginChildren()` using inline @var
This commit is contained in:
parent
7677a0bc4e
commit
9e0c8ef76a
|
@ -20,6 +20,7 @@ class RequirementsRenderer extends RecursiveIteratorIterator
|
|||
public function beginChildren(): void
|
||||
{
|
||||
$this->tags[] = '<li>';
|
||||
/** @var RequirementSet $currentSet */
|
||||
$currentSet = $this->getSubIterator();
|
||||
$state = $currentSet->getState() ? 'fulfilled' : ($currentSet->isOptional() ? 'not-available' : 'missing');
|
||||
$this->tags[] = '<ul class="set-state ' . $state . '">';
|
||||
|
|
Loading…
Reference in New Issue