Skip to content

Commit d140faa

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: [Validation] improve code for counting errors
2 parents a8661fe + d13c76f commit d140faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation/raw_values.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ address. From inside a controller, it looks like this::
2525
$emailConstraint
2626
);
2727

28-
if (0 === count($errors)) {
28+
if (!$errors->count()) {
2929
// ... this IS a valid email address, do something
3030
} else {
3131
// this is *not* a valid email address

0 commit comments

Comments
 (0)