diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 990155c8..12e03f0d 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -274,7 +274,7 @@ class Loader extends BaseObject $_tmp = ''; foreach ($directory as $key => $value) { $_tmp .= DIRECTORY_SEPARATOR . $value; - if (str_contains($_tmp, $outPath)) { + if (!empty($outPath) && str_contains($_tmp, $outPath)) { $this->addError($_tmp . '-->' . $value); break; }