Skip to content

Commit 89e5c69

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: [Validation] improve code for counting errors
2 parents 60dbc01 + d140faa commit 89e5c69

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)