Skip to content

Commit 4d70838

Browse files
authored
Merge pull request #1980 from nWidart/allow-getExtraPath-to-be-nullable
allow to be null
2 parents 0c04e1a + 11f59b0 commit 4d70838

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Module.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,13 @@ public function delete(): bool
382382
/**
383383
* Get extra path.
384384
*/
385-
public function getExtraPath(string $path): string
385+
public function getExtraPath(?string $path): string
386386
{
387-
return $this->getPath().'/'.$path;
387+
return $this->getPath() . ($path ? '/' . $path : '');
388388
}
389389

390390
/**
391-
* Check if can load files of module on boot method.
391+
* Check can load files of module on boot method.
392392
*/
393393
protected function isLoadFilesOnBoot(): bool
394394
{

0 commit comments

Comments
 (0)