Skip to content

Commit 7419e64

Browse files
committed
Fix implicitly nullable type for $mode in render()
1 parent a907c8b commit 7419e64

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Renderers/Bs3FormRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct()
4242
}
4343

4444

45-
public function render(Form $form, string $mode = null): string
45+
public function render(Form $form, ?string $mode = null): string
4646
{
4747
if (!isset($this->form) || $this->form !== $form) {
4848
$this->controlsInit = false;

src/Renderers/Bs4FormRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function __construct(string $layout = FormLayout::HORIZONTAL)
6363
}
6464

6565

66-
public function render(Form $form, string $mode = null): string
66+
public function render(Form $form, ?string $mode = null): string
6767
{
6868
if (!isset($this->form) || $this->form !== $form) {
6969
$this->controlsInit = false;

src/Renderers/Bs5FormRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(string $layout = FormLayout::HORIZONTAL)
6565
}
6666

6767

68-
public function render(Form $form, string $mode = null): string
68+
public function render(Form $form, ?string $mode = null): string
6969
{
7070
if (!isset($this->form) || $this->form !== $form) {
7171
$this->controlsInit = false;

0 commit comments

Comments
 (0)