Skip to content

Commit

Permalink
Merge pull request #282 from vlucas/iss281
Browse files Browse the repository at this point in the history
use correct typehint for callable, fix #281
  • Loading branch information
willemwollebrants committed Mar 21, 2019
2 parents 7705cbc + dfde682 commit c3b4dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Valitron/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ public function hasValidator($name)
/**
* Convenience method to add a single validation rule
*
* @param string|callback $rule
* @param string|callable $rule
* @param array|string $fields
* @return Validator
* @throws \InvalidArgumentException
Expand Down

0 comments on commit c3b4dac

Please sign in to comment.