Skip to content

Commit eb47199

Browse files
Merge pull request #47 from DissNik/patch-1
Fix absolute path
2 parents 46b0d18 + 2cbd36a commit eb47199

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Manager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ public function processFileContents($file)
159159
array_unshift($directories, '');
160160

161161
foreach ($directories as $directory) {
162-
$directory = Str::finish($directory, DIRECTORY_SEPARATOR);
162+
if (!empty($directory)) {
163+
$directory = Str::finish($directory, DIRECTORY_SEPARATOR);
164+
}
163165

164166
if (is_file($directory . $file)) {
165167
return file_get_contents($directory . $file);

0 commit comments

Comments
 (0)