Merge pull request #173 from EgorGruzdev/master

Fix doctype declaration for rule method. Allows both array and string for $field parameter
This commit is contained in:
Willem Wollebrants 2016-12-14 09:47:35 +01:00 committed by GitHub
commit 28d5a5a0a3

View File

@ -1084,7 +1084,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|callback $rule
* @param array $fields * @param array|string $fields
* @return $this * @return $this
* @throws \InvalidArgumentException * @throws \InvalidArgumentException
*/ */