From 76ddfbf8b34b21d21ca868e2dac67f360db56cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 19:39:57 +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 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 5f8eeb6f..19f1154b 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -121,16 +121,10 @@ class Annotation extends Component { try { $reflect = $this->reflectClass($class); - var_dump($class, $reflect); if (empty($reflect)) { return []; } - $constructor = $reflect->getConstructor(); - if (!empty($constructor) && count($constructor->getParameters()) > 0) { - return []; - } - $object = $reflect->newInstance(); $this->resolveMethod($reflect, $class, $alias, $object); return $this->targets($reflect);