From 2b99da1742805c744474175d23c063f02ac3ae49 Mon Sep 17 00:00:00 2001 From: Elias Hiller Date: Wed, 31 Jan 2024 09:29:31 +0100 Subject: [PATCH] fixup! fixup! fixup! fixup! Addressed some qodana warnings --- src/Resolver/Location/FindParentStrategy.php | 1 - src/Resolver/Resolver.php | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Resolver/Location/FindParentStrategy.php b/src/Resolver/Location/FindParentStrategy.php index 8dc60e30..76d879b6 100644 --- a/src/Resolver/Location/FindParentStrategy.php +++ b/src/Resolver/Location/FindParentStrategy.php @@ -23,7 +23,6 @@ use Pimcore\Model\DataObject\AbstractObject; use Pimcore\Model\DataObject\ClassDefinition; use Pimcore\Model\Element\ElementInterface; -use Pimcore\Model\Exception\NotFoundException; class FindParentStrategy implements LocationStrategyInterface { diff --git a/src/Resolver/Resolver.php b/src/Resolver/Resolver.php index 456e37c4..c4da3707 100644 --- a/src/Resolver/Resolver.php +++ b/src/Resolver/Resolver.php @@ -136,6 +136,9 @@ public function loadElementByIdentifier($identifier): ?ElementInterface return $this->getLoadingStrategy()->loadElementByIdentifier($identifier); } + /** + * @throws InvalidInputException + */ public function loadOrCreateAndPrepareElement(array $inputData, bool $createNew = true): ?ElementInterface { $element = $this->loadElement($inputData);