Skip to content

Commit b7cad77

Browse files
authored
Make mount method parameter types nullable and add return type (#36)
1 parent 556cf04 commit b7cad77

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/Livewire/LiveSearch.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
class LiveSearch extends Search
66
{
77
public $template;
8+
89
public $index;
910

10-
public function mount(string $template = null, string $index = null)
11+
public function mount(?string $template = null, ?string $index = null): void
1112
{
1213
// In case no template has been defined, we will fall back to a default layout.
1314
$this->template = $template ?? 'live-search::dropdown';

0 commit comments

Comments
 (0)