Skip to content

Commit

Permalink
Fix minDate Function
Browse files Browse the repository at this point in the history
Fixing Error that placed Closure after the variable.
  • Loading branch information
AhmadFida2 authored Mar 22, 2024
1 parent 67f88f0 commit 5fabe1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Components/Flatpickr.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public function getMinDate(): Carbon|string|null
return $this->minDate;
}

public function minDate(Carbon|string|null $minDate|Closure): static
public function minDate(Carbon|string|null|Closure $minDate): static
{
$this->minDate = $minDate ? Carbon::parse($minDate) : $minDate;

Expand Down

0 comments on commit 5fabe1c

Please sign in to comment.