From a4ebc24bfd1e186e15f118fcfc3aee3b69eb1290 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Tue, 8 Jun 2021 15:51:59 -0400 Subject: [PATCH] Only parse string based validation rules (#3812) --- src/Fields/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fields/Validator.php b/src/Fields/Validator.php index 59b5a4c556..baa4a53f18 100644 --- a/src/Fields/Validator.php +++ b/src/Fields/Validator.php @@ -99,7 +99,7 @@ private function fieldAttributes() private function parse($rule) { - if (! Str::contains($rule, '{')) { + if (! is_string($rule) || ! Str::contains($rule, '{')) { return $rule; }