From 5fabe1cdbee6d2b215d5139ad0166cfec075a3d8 Mon Sep 17 00:00:00 2001 From: Muhammad Ahmad Fida <154905529+AhmadFida2@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:49:05 +0500 Subject: [PATCH] Fix minDate Function Fixing Error that placed Closure after the variable. --- src/Forms/Components/Flatpickr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/Components/Flatpickr.php b/src/Forms/Components/Flatpickr.php index 7463fd4..a92c6a8 100644 --- a/src/Forms/Components/Flatpickr.php +++ b/src/Forms/Components/Flatpickr.php @@ -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;