Skip to content

Commit 8002cc7

Browse files
symfonyamlsymfonyaml
authored andcommitted
Remove unused variable $parsed
1 parent 31bd66c commit 8002cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Constraints/YamlValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function validate(mixed $value, Constraint $constraint): void
5050
});
5151

5252
try {
53-
$parsed = $parser->parse($value, $constraint->flags);
53+
$parser->parse($value, $constraint->flags);
5454
} catch (ParseException $e) {
5555
$this->context->buildViolation($constraint->message)
5656
->setParameter('{{ value }}', $this->formatValue($value))

0 commit comments

Comments
 (0)