Skip to content

Commit

Permalink
Merge branch 'staging' into deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorcsimma committed Sep 12, 2024
2 parents 453276a + 1548e48 commit a43b06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Livewire/ParentChildForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class ParentChildForm extends Component
* @param array $items
* @param bool $optional
*/
public function mount($items = [''], $optional = false)
public function mount(?array $items, bool $optional = false): void
{
if (count($items) == 0) {
if (is_null($items) || count($items) == 0) {
$items = [''];
}
$this->items = $items;
Expand Down

0 comments on commit a43b06c

Please sign in to comment.