Skip to content

Commit 0871f9f

Browse files
committed
Merge pull request formers#262 from fonograph/patch-1
fixed typo in withErrors
2 parents b6633e6 + e842a87 commit 0871f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Former/Former.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function withErrors($validator = null)
266266
if ($validator instanceof Validator) {
267267
$this->errors = $validator->getMessageBag();
268268

269-
} else if ($validator instanceof MessagBag) {
269+
} else if ($validator instanceof MessageBag) {
270270
$this->errors = $validator;
271271
}
272272

0 commit comments

Comments
 (0)