diff --git a/src/Manager.php b/src/Manager.php index 6d94952..c1ea571 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -159,7 +159,9 @@ public function processFileContents($file) array_unshift($directories, ''); foreach ($directories as $directory) { - $directory = Str::finish($directory, DIRECTORY_SEPARATOR); + if (!empty($directory)) { + $directory = Str::finish($directory, DIRECTORY_SEPARATOR); + } if (is_file($directory . $file)) { return file_get_contents($directory . $file);