Fixed PHPstan issue

This commit is contained in:
Jan Böhmer 2026-02-08 19:37:44 +01:00
parent 90c82aab2e
commit f95e39748e
4 changed files with 4 additions and 4 deletions

View file

@ -213,7 +213,7 @@ class AttachmentType extends AbstractStructuralDBElement
$tmp = [];
foreach ($this->allowed_targets as $target) {
if (Attachment::ORM_DISCRIMINATOR_MAP[$target]) {
if (isset(Attachment::ORM_DISCRIMINATOR_MAP[$target])) {
$tmp[] = Attachment::ORM_DISCRIMINATOR_MAP[$target];
}
//Otherwise ignore the entry, as it is invalid