Skip to content

Commit

Permalink
Add return type hint (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Mar 16, 2020
1 parent a44cad3 commit 4373d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function onSubmit($callback)
*
* @param string $name Name of the field
*/
public function getField($name)
public function getField($name): FormField\Generic
{
return $this->fields[$name];
}
Expand Down

0 comments on commit 4373d7e

Please sign in to comment.