10000 [Validator] Small fix to previous commit · symfony/symfony@f03bf95 · GitHub
[go: up one dir, main page]

Skip to content

Commit f03bf95

Browse files
committed
[Validator] Small fix to previous commit
fixing PHP Notice: Undefined variable: code in src/Symfony/Component/Validator/ConstraintViolation.php on line 91
1 parent d17b333 commit f03bf95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/ConstraintViolation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __toString()
8484
$class .= '.';
8585
}
8686

87-
if (null !== $this->code && '' !== $code = $this->code) {
87+
if (null !== ($code = $this->code) && '' !== $code) {
8888
$code = ' (code '.$code.')';
8989
}
9090

0 commit comments

Comments
 (0)
0