Browse Source

Merge remote-tracking branch 'origin/2.0' into 2.0

Jiang qinghua 4 years ago
parent
commit
c7e8f2066f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Form/Concerns/HasFieldValidator.php

+ 1 - 1
src/Form/Concerns/HasFieldValidator.php

@@ -99,7 +99,7 @@ trait HasFieldValidator
             $this->rules = $rules;
         }
 
-        $originalRules = is_array($this->rules) ? $this->rules : [];
+        $originalRules = $this->getRules();
 
         if (is_array($rules)) {
             $this->rules = array_merge($originalRules, $rules);