Skip to content

Commit 15ef159

Browse files
committed
do not call Component::__construct()
1 parent 84f2559 commit 15ef159

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/Forms/Controls/BaseControl.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ abstract class BaseControl extends Nette\ComponentModel\Component implements ICo
8383
*/
8484
public function __construct($caption = null)
8585
{
86-
parent::__construct();
8786
$this->control = Html::el('input', ['type' => null, 'name' => null]);
8887
$this->label = Html::el('label');
8988
$this->caption = $caption;

src/Forms/Form.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ class Form extends Container implements Nette\Utils\IHtmlString
125125
*/
126126
public function __construct(string $name = null)
127127
{
128-
parent::__construct();
129128
if ($name !== null) {
130129
$this->getElementPrototype()->id = 'frm-' . $name;
131130
$tracker = new Controls\HiddenField($name);

0 commit comments

Comments
 (0)