mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 21:09:35 +00:00
Fixed PHPstan issue
This commit is contained in:
parent
90c82aab2e
commit
f95e39748e
4 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue