Skip to content

Commit a4b11d1

Browse files
committed
fixed short array CS in comments
1 parent 266273e commit a4b11d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Constraints/GroupSequence.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* When validating a group sequence, each group will only be validated if all
1818
* of the previous groups in the sequence succeeded. For example:
1919
*
20-
* $validator->validate($address, null, new GroupSequence(array('Basic', 'Strict')));
20+
* $validator->validate($address, null, new GroupSequence(['Basic', 'Strict']));
2121
*
2222
* In the first step, all constraints that belong to the group "Basic" will be
2323
* validated. If none of the constraints fail, the validator will then validate

Context/ExecutionContextInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function buildViolation($message, array $parameters = []);
9797
* {
9898
* $validator = $this->context->getValidator();
9999
*
100-
* $violations = $validator->validate($value, new Length(array('min' => 3)));
100+
* $violations = $validator->validate($value, new Length(['min' => 3]));
101101
*
102102
* if (count($violations) > 0) {
103103
* // ...

0 commit comments

Comments
 (0)