mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-15 07:22:40 +02:00
Fixed phpstan issue
This commit is contained in:
parent
1e9a2e5382
commit
475cfe60f9
1 changed files with 4 additions and 1 deletions
|
@ -157,7 +157,10 @@ class EntityImporter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$last_element = $entity;
|
$last_element = end($entities);
|
||||||
|
if ($last_element === false) {
|
||||||
|
$last_element = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Only return objects once
|
//Only return objects once
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue