Skip to content

Commit a43b06c

Browse files
committed
Merge branch 'staging' into deployment
2 parents 453276a + 1548e48 commit a43b06c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Livewire/ParentChildForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class ParentChildForm extends Component
2222
* @param array $items
2323
* @param bool $optional
2424
*/
25-
public function mount($items = [''], $optional = false)
25+
public function mount(?array $items, bool $optional = false): void
2626
{
27-
if (count($items) == 0) {
27+
if (is_null($items) || count($items) == 0) {
2828
$items = [''];
2929
}
3030
$this->items = $items;

0 commit comments

Comments
 (0)