From 8b0d2b4b4d0c3208c1efb884fead63e9b66142d0 Mon Sep 17 00:00:00 2001 From: coolsam726 Date: Thu, 25 Aug 2022 17:56:44 +0000 Subject: [PATCH] Fix styling --- src/Flatpickr.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Flatpickr.php b/src/Flatpickr.php index e518bfc..6c2ac0e 100755 --- a/src/Flatpickr.php +++ b/src/Flatpickr.php @@ -20,7 +20,7 @@ class Flatpickr extends Field protected bool $multiplePicker = false; protected bool $altInput = true; - + protected array $config = []; protected ?string $altFormat = 'F j, Y'; @@ -49,17 +49,18 @@ public function isWeekSelect(): bool { return $this->weekSelect; } - + /** - * @param array $config + * @param array $config * @return Flatpickr */ public function config(array|\Closure $config): Flatpickr { $this->config = $config; + return $this; } - + /** * @return array */