From 3c747e879cea8d1ccd982a5848a80b0b3768be25 Mon Sep 17 00:00:00 2001 From: soyuka Date: Thu, 15 Oct 2020 10:01:38 +0200 Subject: [PATCH] fix identifiers do not denormalize the same identifier twice --- src/Identifier/IdentifierConverter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Identifier/IdentifierConverter.php b/src/Identifier/IdentifierConverter.php index 9faafd8ef54..c60651b1064 100644 --- a/src/Identifier/IdentifierConverter.php +++ b/src/Identifier/IdentifierConverter.php @@ -80,6 +80,7 @@ public function convert(string $data, string $class, array $context = []): array try { $identifiers[$key] = $identifierDenormalizer->denormalize($identifiers[$key], $type); + break; } catch (InvalidIdentifierException $e) { throw new InvalidIdentifierException(sprintf('Identifier "%s" could not be denormalized.', $key), $e->getCode(), $e); }