Skip to content

Commit

Permalink
fix file validator not work (#25)
Browse files Browse the repository at this point in the history
fix file validator not work
  • Loading branch information
inhere committed Nov 15, 2019
2 parents 159aa63 + 6f9d0b4 commit eb5fa57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ValidationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ protected function fieldValidate(string $field, $value, string $validator, array

// File resource check
} elseif (self::isCheckFile($validator)) {
$passed = $this->$validator($field, ...array_values($args));
$method = "{$validator}Validator";
$passed = $this->$method($field, ...array_values($args));

// other required* methods
} elseif (method_exists($this, $validator)) {
Expand Down

0 comments on commit eb5fa57

Please sign in to comment.