mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-15 03:38:50 +01:00
Fixed PHPstan issue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user