Fixed static analyis issue

This commit is contained in:
Jan Böhmer 2023-01-15 23:43:49 +01:00
parent cbe010ee67
commit 706253ce74

View file

@ -20,6 +20,7 @@
namespace App\Controller; namespace App\Controller;
use App\Entity\Base\AbstractNamedDBElement;
use App\Entity\Base\AbstractStructuralDBElement; use App\Entity\Base\AbstractStructuralDBElement;
use App\Entity\Contracts\NamedElementInterface; use App\Entity\Contracts\NamedElementInterface;
use App\Entity\LabelSystem\LabelProfile; use App\Entity\LabelSystem\LabelProfile;
@ -170,7 +171,7 @@ class SelectAPIController extends AbstractController
'value' => $node->getID(), 'value' => $node->getID(),
'data-subtext' => $node->getParent() ? $node->getParent()->getFullPath() : null, 'data-subtext' => $node->getParent() ? $node->getParent()->getFullPath() : null,
]; ];
} elseif ($node instanceof NamedElementInterface) { } elseif ($node instanceof AbstractNamedDBElement) {
$entry = [ $entry = [
'text' => htmlspecialchars($node->getName()), 'text' => htmlspecialchars($node->getName()),
'value' => $node->getID(), 'value' => $node->getID(),