From 11f59b08af16fd9a1353dc0c5e8d8b6419446bb6 Mon Sep 17 00:00:00 2001 From: David Carr Date: Sat, 16 Nov 2024 03:10:01 +0000 Subject: [PATCH] allow to be null --- src/Module.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Module.php b/src/Module.php index 0d6457c2..4ed08fb8 100644 --- a/src/Module.php +++ b/src/Module.php @@ -382,13 +382,13 @@ public function delete(): bool /** * Get extra path. */ - public function getExtraPath(string $path): string + public function getExtraPath(?string $path): string { - return $this->getPath().'/'.$path; + return $this->getPath() . ($path ? '/' . $path : ''); } /** - * Check if can load files of module on boot method. + * Check can load files of module on boot method. */ protected function isLoadFilesOnBoot(): bool {