When writing a form type, it would be great to have autocompletion for keys of $options in the different methods where it is available.
These key should take into account the configuration of the form type itself (by looking at the code of its setDefaultOptions method and of all of its parent in the hierarchy (getParent and recursively, plus all form extensions applied at any level).
Thus, it is even possible to provide autocompletion for the type of the values in case addAllowedTypes or setAllowedTypes are used for some options: http://symfony.com/doc/current/components/options_resolver.html#configure-allowed-types
When writing a form type, it would be great to have autocompletion for keys of
$optionsin the different methods where it is available.These key should take into account the configuration of the form type itself (by looking at the code of its
setDefaultOptionsmethod and of all of its parent in the hierarchy (getParentand recursively, plus all form extensions applied at any level).Thus, it is even possible to provide autocompletion for the type of the values in case
addAllowedTypesorsetAllowedTypesare used for some options: http://symfony.com/doc/current/components/options_resolver.html#configure-allowed-types