Skip to content

Commit

Permalink
Add null type to description and title methods parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Jun 28, 2024
1 parent 165f250 commit a9526be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Concerns/HasDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Components/Concerns/HasTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a9526be

Please sign in to comment.