File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
src/Symfony/Component/Validator/Constraints Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change <
D493
tr class="diff-line-row">@@ -232,20 +232,14 @@ private function validateStrict($value, Uuid $constraint)
232
232
if ($ i !== $ h ) {
233
233
if ($ this ->context instanceof ExecutionContextInterface) {
234
234
$ this ->context ->buildViolation ($ constraint ->message )
235
- ->setParameter (
236
- '{{ value }} ' ,
237
- $ this ->formatValue ($ value )
238
- )
239
- ->setCode (Uuid::INVALID_HYPHEN_PLACEMENT_ERROR )
240
- ->addViolation ();
235
+ ->setParameter ('{{ value }} ' , $ this ->formatValue ($ value ))
236
+ ->setCode (Uuid::INVALID_HYPHEN_PLACEMENT_ERROR )
237
+ ->addViolation ();
241
238
} else {
242
239
$ this ->buildViolation ($ constraint ->message )
243
- ->setParameter (
244
- '{{ value }} ' ,
245
- $ this ->formatValue ($ value )
246
- )
247
- ->setCode (Uuid::INVALID_HYPHEN_PLACEMENT_ERROR )
248
- ->addViolation ();
240
+ ->setParameter ('{{ value }} ' , $ this ->formatValue ($ value ))
241
+ ->setCode (Uuid::INVALID_HYPHEN_PLACEMENT_ERROR )
242
+ ->addViolation ();
249
243
}
250
244
251
245
return ;
You can’t perform that action at this time.
0 commit comments