Skip to content

Commit 5cb0508

Browse files
authored
ci: fix tests (#3971)
1 parent a5f35d3 commit 5cb0508

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Bridge/Symfony/Identifier/Normalizer/UuidNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function denormalize($data, $class, $format = null, array $context = [])
2929
{
3030
try {
3131
return Uuid::fromString($data);
32-
} catch (\InvalidArgumentException $e) {
32+
} catch (\InvalidArgumentException | \ValueError $e) { // catching ValueError will not be necessary anymore when https://github.com/symfony/symfony/pull/39636 will be released
3333
throw new InvalidIdentifierException($e->getMessage(), $e->getCode(), $e);
3434
}
3535
}

src/Serializer/AbstractConstraintViolationListNormalizer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ protected function getMessagesAndViolations(ConstraintViolationListInterface $co
5959
{
6060
$violations = $messages = [];
6161

62-
/** @var ConstraintViolation $violation */
6362
foreach ($constraintViolationList as $violation) {
6463
$class = \is_object($root = $violation->getRoot()) ? \get_class($root) : null;
6564
$violationData = [

0 commit comments

Comments
 (0)