diff --git a/composer.json b/composer.json index da5e4a4..421a121 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "php": "^8.1", "blade-ui-kit/blade-icons": "^1.5.3", "illuminate/support": "^10.21", - "intervention/image": "^2.7.2", + "intervention/image": "^2.7.2 || ^3.0.0", "laravel/folio": "^1.1.4", "laravel/fortify": "^1.19.0", "livewire/livewire": "^3.2.6", diff --git a/src/Components/Metadata.php b/src/Components/Metadata.php index c10a68e..e6a8dd5 100644 --- a/src/Components/Metadata.php +++ b/src/Components/Metadata.php @@ -9,7 +9,7 @@ class Metadata extends Component public string $groupname; - public function __construct(string $pagename, string $groupname = null) + public function __construct(string $pagename, ?string $groupname = null) { $this->pagename = $pagename; $this->dismissible = $groupname; diff --git a/src/Concerns/HandlesValidationErrors.php b/src/Concerns/HandlesValidationErrors.php index 5af3f60..225d10f 100644 --- a/src/Concerns/HandlesValidationErrors.php +++ b/src/Concerns/HandlesValidationErrors.php @@ -23,14 +23,14 @@ public function ariaDescribedBy() return ''; } - public function hasErrorsAndShow(string $name = null, string $bag = 'default'): bool + public function hasErrorsAndShow(?string $name = null, string $bag = 'default'): bool { return $this->showErrors ? $this->hasError($name, $bag) : false; } - public function hasError(string $name = null, string $bag = 'default'): bool + public function hasError(?string $name = null, string $bag = 'default'): bool { $errors = View::shared('errors', fn () => request()->session()->get('errors', new ViewErrorBag));