diff --git a/Annotation/Loader.php b/Annotation/Loader.php index a8a0ef50..2a222ebd 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -245,7 +245,7 @@ class Loader extends BaseObject public function appendFileToDirectory(string $filePath, string $className) { $directory = $this->splitDirectory($filePath); - array_pop($DIRECTORY); + array_pop($directory); $tree = null; foreach ($directory as $value) {