From c77427134359f12826c2a05995675a332e39a8b9 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 8 Apr 2021 01:38:56 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {