zendframework / zend-form

Form component from Zend Framework
BSD 3-Clause "New" or "Revised" License
69 stars 87 forks source link

Undocumented Zend\Form\FieldsetInterface return type for the Zend\Form\Fieldset::get() method #205

Closed nuxwin closed 5 years ago

nuxwin commented 6 years ago

Undocumented return type for the Zend\Form\Fieldset::get() method.

The Zend\Form\Fieldset::get() method can return either a Zend\Form\ElementInterface or Zend\Form\FieldsetInterface. Currently, the Zend\Form\FieldsetInterface return type isn't documented leading to IDE (PhpStorm) inspection error:

warning

Basically

unexpected

Should look like

expected

unckleg commented 6 years ago

Help wanted ? :dango: @nuxwin would you make PR for this ?

nuxwin commented 6 years ago

@unckleg

I could yes.