Skip to content

Commit

Permalink
Merge pull request #1980 from nWidart/allow-getExtraPath-to-be-nullable
Browse files Browse the repository at this point in the history
allow to be null
  • Loading branch information
dcblogdev authored Nov 16, 2024
2 parents 0c04e1a + 11f59b0 commit 4d70838
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 4d70838

Please sign in to comment.