Skip to content

Commit ece973d

Browse files
committed
php 8.4 compatibility patch
1 parent af192d1 commit ece973d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Selectoo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function getElements(): array
228228
* @param callable|null $itemCallback
229229
* @return self
230230
*/
231-
public function setItemCallback(callable $itemCallback = null)
231+
public function setItemCallback(?callable $itemCallback = null)
232232
{
233233
$this->itemCallback = $itemCallback;
234234
return $this;
@@ -454,7 +454,7 @@ public function getEngine()
454454
* @param callable|null $routine a function with signature function($script, $htmlElement, $selectooInput): string|null
455455
* @return self
456456
*/
457-
public function setScriptManagement(callable $routine = null)
457+
public function setScriptManagement(?callable $routine = null)
458458
{
459459
$this->scriptManagement = $routine;
460460
return $this;

0 commit comments

Comments
 (0)