From a9526be8873c2d4659184ec9643fcf47277b2335 Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Fri, 28 Jun 2024 09:47:32 +0200 Subject: [PATCH] Add null type to description and title methods parameters --- src/Components/Concerns/HasDescription.php | 2 +- src/Components/Concerns/HasTitle.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Concerns/HasDescription.php b/src/Components/Concerns/HasDescription.php index 9b3bc7f..961e4c6 100644 --- a/src/Components/Concerns/HasDescription.php +++ b/src/Components/Concerns/HasDescription.php @@ -8,7 +8,7 @@ trait HasDescription { protected Closure|string|null $description = null; - public function description(Closure|string $description): static + public function description(Closure|string|null $description): static { $this->description = $description; diff --git a/src/Components/Concerns/HasTitle.php b/src/Components/Concerns/HasTitle.php index 737ce57..114a7fa 100644 --- a/src/Components/Concerns/HasTitle.php +++ b/src/Components/Concerns/HasTitle.php @@ -8,7 +8,7 @@ trait HasTitle { protected Closure|string|null $title = null; - public function title(Closure|string $title): static + public function title(Closure|string|null $title): static { $this->title = $title;