diff --git a/Annotation/Loader.php b/Annotation/Loader.php index cd65d2f2..264ba009 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -266,7 +266,9 @@ class Loader extends BaseObject $tree = null; $directory = $this->splitDirectory($filePath); - $output = DIRECTORY_SEPARATOR . rtrim($output, '/'); + if (!empty($output)) { + $output = DIRECTORY_SEPARATOR . rtrim($output, '/'); + } $out_path = ''; foreach ($directory as $key => $value) {