From f3409bcbc63579567c7c170f8a0524c2583d043b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 02:17:25 +0000 Subject: [PATCH 1/2] build(deps): update intervention/image requirement || ^3.0.0 Updates the requirements on [intervention/image](https://github.com/Intervention/image) to permit the latest version. - [Commits](https://github.com/Intervention/image/compare/2.7.2...3.0.1) --- updated-dependencies: - dependency-name: intervention/image dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 41020b9a2a5389d2ca5d4a6c45f55a9189f75798 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 11 Dec 2023 02:17:51 +0000 Subject: [PATCH 2/2] refactor: Laravel Pint changes --- src/Components/Metadata.php | 2 +- src/Concerns/HandlesValidationErrors.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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));