Skip to content

Commit

Permalink
allow to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
dcblogdev committed Nov 16, 2024
1 parent 0c04e1a commit 11f59b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 11f59b0

Please sign in to comment.