Skip to content

Commit 3b2f2e9

Browse files
committed
WIP
1 parent 8ca5873 commit 3b2f2e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Denormalizer/EntityRelationDenormalizer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ public function __construct(
2727
) {
2828
}
2929

30+
/**
31+
* @param class-string $type
32+
*/
3033
public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed
3134
{
3235
if (!is_array($data)) {
3336
return $data;
3437
}
3538

3639
// Try to find existing entity by id or code
37-
/** @var class-string $type */
3840
$existingEntity = $this->findExistingEntity($type, $data);
3941
if (null !== $existingEntity) {
4042
// Ensure entity is managed to prevent cascade persist errors

0 commit comments

Comments
 (0)