Skip to content

Commit

Permalink
Merge pull request #150 from mokhosh/fix-implicit-null
Browse files Browse the repository at this point in the history
Fix implicit nullable deprecation notice
  • Loading branch information
freekmurze authored Nov 18, 2024
2 parents d780aa1 + 6c1e2d2 commit 1f26942
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function shortName(): string
return Str::after($this->name, 'laravel-');
}

public function hasViews(string $namespace = null): static
public function hasViews(?string $namespace = null): static
{
$this->hasViews = true;

Expand All @@ -93,7 +93,7 @@ public function hasViews(string $namespace = null): static
return $this;
}

public function hasInertiaComponents(string $namespace = null): static
public function hasInertiaComponents(?string $namespace = null): static
{
$this->hasInertiaComponents = true;

Expand Down Expand Up @@ -218,7 +218,7 @@ public function hasRoutes(...$routeFileNames): static
return $this;
}

public function basePath(string $directory = null): string
public function basePath(?string $directory = null): string
{
if ($directory === null) {
return $this->basePath;
Expand Down

0 comments on commit 1f26942

Please sign in to comment.