Symfony\Component\OptionsResolver\OptionsResolver::validateOptionTypes
Validates that the given options match the allowed types and throws an exception otherwise.
Signature
private function validateOptionTypes(array
$options )
Parameters
$options
— array- A list of options.
Errors/Exceptions
-
InvalidOptionsException
- If any of the types does not match the