Skip to content

Commit 1f26942

Browse files
authored
Merge pull request #150 from mokhosh/fix-implicit-null
Fix implicit nullable deprecation notice
2 parents d780aa1 + 6c1e2d2 commit 1f26942

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Package.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function shortName(): string
8484
return Str::after($this->name, 'laravel-');
8585
}
8686

87-
public function hasViews(string $namespace = null): static
87+
public function hasViews(?string $namespace = null): static
8888
{
8989
$this->hasViews = true;
9090

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

96-
public function hasInertiaComponents(string $namespace = null): static
96+
public function hasInertiaComponents(?string $namespace = null): static
9797
{
9898
$this->hasInertiaComponents = true;
9999

@@ -218,7 +218,7 @@ public function hasRoutes(...$routeFileNames): static
218218
return $this;
219219
}
220220

221-
public function basePath(string $directory = null): string
221+
public function basePath(?string $directory = null): string
222222
{
223223
if ($directory === null) {
224224
return $this->basePath;

0 commit comments

Comments
 (0)