update deps & install rector

This commit is contained in:
Dominik Liebler
2019-12-14 12:50:05 +01:00
parent 04acce6759
commit 579a5ac946
87 changed files with 2432 additions and 786 deletions

View File

@@ -11,15 +11,13 @@ class Form implements Renderable
/**
* @var Renderable[]
*/
private $elements;
private array $elements;
/**
* runs through all elements and calls render() on them, then returns the complete representation
* of the form.
*
* from the outside, one will not see this and the form will act like a single object instance
*
* @return string
*/
public function render(): string
{
@@ -34,9 +32,6 @@ class Form implements Renderable
return $formCode;
}
/**
* @param Renderable $element
*/
public function addElement(Renderable $element)
{
$this->elements[] = $element;