Merge pull request #9882 from creative-commoners/pulls/4/doc-composite-validator

DOC Clarify return value for CompositeValidator::getValidatorsByType()
This commit is contained in:
Steve Boyd 2021-04-06 15:26:16 +12:00 committed by GitHub
commit 160ed6f3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ class CompositeValidator extends Validator
/**
* Return all Validators that match a certain class name. EG: RequiredFields::class
*
* The keys for the return array match the keys in the unfiltered array. You cannot assume the keys will be
* sequential or that the first key will be ZERO.
*
* @param string $className
* @return array|Validator[]
*/