Skip to content

Commit 41278ae

Browse files
author
enjoys
committed
fix: Implicitly marking parameter as nullable is deprecated
1 parent 787e7b2 commit 41278ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function ($k) {
134134
* @param string|null $after
135135
* @return $this
136136
*/
137-
public function addElement(Element $element, string $before = null, string $after = null): static
137+
public function addElement(Element $element, ?string $before = null, ?string $after = null): static
138138
{
139139
$element->setForm($this);
140140
return $this->parentAddElement($element, $before, $after);

0 commit comments

Comments
 (0)