Skip to content

Commit

Permalink
Proper fix when provided path is '0' (#40050)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlakoff authored Dec 15, 2021
1 parent c7d6fe5 commit 96d2b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public function publicPath()
public function storagePath($path = '')
{
return ($this->storagePath ?: $this->basePath.DIRECTORY_SEPARATOR.'storage')
.($path ? DIRECTORY_SEPARATOR.$path : $path);
.($path != '' ? DIRECTORY_SEPARATOR.$path : '');
}

/**
Expand Down

0 comments on commit 96d2b48

Please sign in to comment.