Skip to content

Commit fb7cb3f

Browse files
minor #51733 [Validator] remove an unreachable code branch (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Validator] remove an unreachable code branch | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | This property is a string or null but can never be `false`. Commits ------- 4e81865162 remove an unreachable code branch
2 parents 815a0cf + eb2967f commit fb7cb3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Context/ExecutionContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function setConstraint(Constraint $constraint): void
142142
public function addViolation(string $message, array $parameters = []): void
143143
{
144144
$this->violations->add(new ConstraintViolation(
145-
false === $this->translationDomain ? strtr($message, $parameters) : $this->translator->trans($message, $parameters, $this->translationDomain),
145+
$this->translator->trans($message, $parameters, $this->translationDomain),
146146
$message,
147147
$parameters,
148148
$this->root,

0 commit comments

Comments
 (0)