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 @@ -232,20 +232,14 @@ private function validateStrict($value, Uuid $constraint)
232232 if ($ i !== $ h ) {
233233 if ($ this ->context instanceof ExecutionContextInterface) {
234234 $ 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 ();
241238 } else {
242239 $ 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 ();
249243 }
250244
251245 return ;
You can’t perform that action at this time.
0 commit comments