Skip to content

Commit d2d89b0

Browse files
committed
getLabel() removed return type void [Closes #241]
1 parent 306d429 commit d2d89b0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Forms/Controls/BaseControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function getControl()
266266
/**
267267
* Generates label's HTML element.
268268
* @param string|object $caption
269-
* @return Html|string
269+
* @return Html|string|null
270270
*/
271271
public function getLabel($caption = null)
272272
{

src/Forms/Controls/Button.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function isFilled(): bool
4141
/**
4242
* Bypasses label generation.
4343
*/
44-
public function getLabel($caption = null): void
44+
public function getLabel($caption = null)
4545
{
4646
}
4747

src/Forms/Controls/Checkbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getControl(): Html
7070
/**
7171
* Bypasses label generation.
7272
*/
73-
public function getLabel($caption = null): void
73+
public function getLabel($caption = null)
7474
{
7575
}
7676

src/Forms/Controls/HiddenField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function getControl(): Nette\Utils\Html
107107
* Bypasses label generation.
108108
* @param string|object $caption
109109
*/
110-
public function getLabel($caption = null): void
110+
public function getLabel($caption = null)
111111
{
112112
}
113113

0 commit comments

Comments
 (0)