mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user