From 475cfe60f9f90ba97a4571e44972574865db10b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 13 Aug 2025 15:34:12 +0200 Subject: [PATCH] Fixed phpstan issue --- src/Services/ImportExportSystem/EntityImporter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Services/ImportExportSystem/EntityImporter.php b/src/Services/ImportExportSystem/EntityImporter.php index 3513be5f..11915cfb 100644 --- a/src/Services/ImportExportSystem/EntityImporter.php +++ b/src/Services/ImportExportSystem/EntityImporter.php @@ -157,7 +157,10 @@ class EntityImporter } } - $last_element = $entity; + $last_element = end($entities); + if ($last_element === false) { + $last_element = null; + } } //Only return objects once