We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46b0d18 + 2cbd36a commit eb47199Copy full SHA for eb47199
src/Manager.php
@@ -159,7 +159,9 @@ public function processFileContents($file)
159
array_unshift($directories, '');
160
161
foreach ($directories as $directory) {
162
- $directory = Str::finish($directory, DIRECTORY_SEPARATOR);
+ if (!empty($directory)) {
163
+ $directory = Str::finish($directory, DIRECTORY_SEPARATOR);
164
+ }
165
166
if (is_file($directory . $file)) {
167
return file_get_contents($directory . $file);
0 commit comments