Merge pull request #282 from vlucas/iss281

use correct typehint for callable, fix #281
This commit is contained in:
Willem Wollebrants 2019-03-21 21:12:22 +01:00 committed by GitHub
commit c3b4dac858
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1246,7 +1246,7 @@ class Validator
/** /**
* Convenience method to add a single validation rule * Convenience method to add a single validation rule
* *
* @param string|callback $rule * @param string|callable $rule
* @param array|string $fields * @param array|string $fields
* @return Validator * @return Validator
* @throws \InvalidArgumentException * @throws \InvalidArgumentException