Skip to content

Commit

Permalink
Only parse string based validation rules (#3812)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Jun 8, 2021
1 parent 860b4f8 commit a4ebc24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private function fieldAttributes()

private function parse($rule)
{
if (! Str::contains($rule, '{')) {
if (! is_string($rule) || ! Str::contains($rule, '{')) {
return $rule;
}

Expand Down

0 comments on commit a4ebc24

Please sign in to comment.