From 7f20d3aaf15e8525f3affcce08c024aeb886bf7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 19:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Annotation.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index b9b25363..13e33b0a 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -85,6 +85,7 @@ class Annotation extends Component * @param string $alias * @return $this * @throws ReflectionException|NotFindPropertyException + * @throws NotFindClassException */ private function scanDir(array $paths, string $namespace, string $alias): static { @@ -115,10 +116,12 @@ class Annotation extends Component * @return array * @throws ReflectionException * @throws NotFindPropertyException + * @throws NotFindClassException */ private function getReflect(string $class, string $alias): array { $reflect = $this->reflectClass($class); + var_dump($class, $reflect); if (empty($reflect)) { return []; } @@ -143,7 +146,6 @@ class Annotation extends Component */ private function resolveMethod(ReflectionClass $reflect, $class, $alias, $object) { - var_dump($reflect->getName()); try { foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) { if ($method->class != $class) {