diff --git a/composer.json b/composer.json index 38a438a..18f9cff 100644 --- a/composer.json +++ b/composer.json @@ -16,9 +16,9 @@ } ], "require": { - "php": "^8.0|^8.1", + "php": "^8.0", "filament/filament": "^2.15", - "illuminate/contracts": "^8.0|^9.0", + "illuminate/contracts": ">=8.0", "spatie/laravel-package-tools": "^1.9.2" }, "require-dev": { diff --git a/src/Flatpickr.php b/src/Flatpickr.php index 6c2ac0e..7186e9b 100755 --- a/src/Flatpickr.php +++ b/src/Flatpickr.php @@ -31,10 +31,6 @@ class Flatpickr extends Field protected ?string $theme; - /** - * @param bool $weekSelect - * @return Flatpickr - */ public function weekSelect(bool $weekSelect = true): Flatpickr { $this->weekSelect = $weekSelect; @@ -42,9 +38,6 @@ public function weekSelect(bool $weekSelect = true): Flatpickr return $this; } - /** - * @return bool - */ public function isWeekSelect(): bool { return $this->weekSelect; @@ -52,7 +45,6 @@ public function isWeekSelect(): bool /** * @param array $config - * @return Flatpickr */ public function config(array|\Closure $config): Flatpickr { @@ -61,18 +53,11 @@ public function config(array|\Closure $config): Flatpickr return $this; } - /** - * @return array - */ public function getConfig(): array { return $this->config; } - /** - * @param bool $rangePicker - * @return Flatpickr - */ public function rangePicker(bool $rangePicker = true): Flatpickr { $this->rangePicker = $rangePicker; @@ -80,18 +65,11 @@ public function rangePicker(bool $rangePicker = true): Flatpickr return $this; } - /** - * @return bool - */ public function isRangePicker(): bool { return $this->rangePicker; } - /** - * @param bool $multiplePicker - * @return Flatpickr - */ public function multiplePicker(bool $multiplePicker = true): Flatpickr { $this->multiplePicker = $multiplePicker; @@ -99,9 +77,6 @@ public function multiplePicker(bool $multiplePicker = true): Flatpickr return $this; } - /** - * @return bool - */ public function isMultiplePicker(): bool { return $this->multiplePicker; @@ -154,7 +129,6 @@ protected function setUp(): void /** * @param bool $monthSelect - * @return Flatpickr */ public function monthSelect(?bool $monthSelect = true): Flatpickr { @@ -163,18 +137,11 @@ public function monthSelect(?bool $monthSelect = true): Flatpickr return $this; } - /** - * @return bool - */ public function isMonthSelect(): bool { return $this->monthSelect; } - /** - * @param bool $altInput - * @return Flatpickr - */ public function altInput(bool $altInput = true): Flatpickr { $this->altInput = $altInput; @@ -182,18 +149,11 @@ public function altInput(bool $altInput = true): Flatpickr return $this; } - /** - * @return bool - */ public function isAltInput(): bool { return $this->altInput; } - /** - * @param bool $enableTime - * @return Flatpickr - */ public function enableTime(bool $enableTime = true): Flatpickr { $this->enableTime = $enableTime; @@ -206,18 +166,11 @@ public function enableTime(bool $enableTime = true): Flatpickr return $this; } - /** - * @return bool - */ public function isEnableTime(): bool { return $this->enableTime; } - /** - * @param string $dateFormat - * @return Flatpickr - */ public function dateFormat(string $dateFormat): Flatpickr { $this->dateFormat = $dateFormat; @@ -225,18 +178,11 @@ public function dateFormat(string $dateFormat): Flatpickr return $this; } - /** - * @return string|null - */ public function getDateFormat(): ?string { return $this->dateFormat; } - /** - * @param string $altFormat - * @return Flatpickr - */ public function altFormat(string $altFormat): Flatpickr { $this->altFormat = $altFormat; @@ -244,21 +190,15 @@ public function altFormat(string $altFormat): Flatpickr return $this; } - /** - * @return string|null - */ public function getAltFormat(): ?string { return $this->altFormat; } /** - * @param string $theme * @description Possible values: 'default','dark','material_blue','material_green','material_red','material_orange','airbnb','confetti' * * @see https://flatpickr.js.org/themes/ - * - * @return Flatpickr */ public function theme(string $theme): Flatpickr { @@ -267,9 +207,6 @@ public function theme(string $theme): Flatpickr return $this; } - /** - * @return string|null - */ public function getTheme(): ?string { return $this->theme;