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 {