diff --git a/api/src/State/ContentNode/ContentNodePersistProcessor.php b/api/src/State/ContentNode/ContentNodePersistProcessor.php index 63038181f2..c4bdba5c2c 100644 --- a/api/src/State/ContentNode/ContentNodePersistProcessor.php +++ b/api/src/State/ContentNode/ContentNodePersistProcessor.php @@ -17,6 +17,7 @@ class ContentNodePersistProcessor extends AbstractPersistProcessor { * @param T $data */ public function onBefore($data, Operation $operation, array $uriVariables = [], array $context = []): ContentNode { + /** @var ContentNode $data */ $data = parent::onBefore($data, $operation, $uriVariables, $context); if ($operation instanceof Post) { diff --git a/api/src/State/Util/AbstractPersistProcessor.php b/api/src/State/Util/AbstractPersistProcessor.php index 76aefbb3f3..af8aef972d 100644 --- a/api/src/State/Util/AbstractPersistProcessor.php +++ b/api/src/State/Util/AbstractPersistProcessor.php @@ -4,7 +4,6 @@ use ApiPlatform\Metadata\Operation; use ApiPlatform\State\ProcessorInterface; -use App\Entity\BaseEntity; /** * @template T @@ -69,7 +68,7 @@ public function process(mixed $data, Operation $operation, array $uriVariables = * * @return T */ - public function onBefore($data, Operation $operation, array $uriVariables = [], array $context = []): BaseEntity { + public function onBefore($data, Operation $operation, array $uriVariables = [], array $context = []) { return $data; }