From 6c1e2d2538ccb8ac54a2bdd6c51a314971f31096 Mon Sep 17 00:00:00 2001 From: Mo Khosh Date: Mon, 18 Nov 2024 18:30:22 +0330 Subject: [PATCH] Fix implicit nullable deprecation notice --- src/Package.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Package.php b/src/Package.php index 940c144..11258be 100644 --- a/src/Package.php +++ b/src/Package.php @@ -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; @@ -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; @@ -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;