Skip to content

Commit

Permalink
better-typing-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-worman committed Apr 10, 2024
1 parent baa5382 commit 0538cec
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions packages/zend-form/library/Zend/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1135,11 +1135,18 @@ public function addElement($element, $name = null, $options = null)
*
* @param string $type
* @param string $name
* @param array|Zend_Config $options
*
* @return Zend_Form_Element
*
* @throws Zend_Form_Exception
* @param array|Zend_Config|null $options
*
* @psalm-return ($type is 'select' ? Zend_Form_Element_Select
* : ($type is 'multiselect' ? Zend_Form_Element_Multiselect
* : ($type is 'text' ? Zend_Form_Element_Text
* : ($type is 'radio' ? Zend_Form_Element_Radio
* : ($type is 'file' ? Zend_Form_Element_File
* : ($type is 'multiCheckbox' ? Zend_Form_Element_MultiCheckbox
* : ($type is 'hidden' ? Zend_Form_Element_Hidden
* : ($type is 'textarea' ? Zend_Form_Element_Textarea
* : Zend_Form_Element
* ))))))))
*/
public function createElement($type, $name, $options = null)
{
Expand Down

0 comments on commit 0538cec

Please sign in to comment.