DOC Clarify return value for CompositeValidator::getValidatorsByType()

This commit is contained in:
Maxime Rainville 2021-03-10 22:59:06 +13:00
parent 2c54a3fd2f
commit 4ee92da6b5

View File

@ -171,6 +171,9 @@ class CompositeValidator extends Validator
/** /**
* Return all Validators that match a certain class name. EG: RequiredFields::class * 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 * @param string $className
* @return array|Validator[] * @return array|Validator[]
*/ */