From 883caf0b954c170092746c9a34e022bb7c889bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 30 Mar 2021 12:07:52 +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 --- System/Aop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Aop.php b/System/Aop.php index 81ecee9a..ec788620 100644 --- a/System/Aop.php +++ b/System/Aop.php @@ -60,7 +60,7 @@ class Aop extends Component } var_dump($this->_aop[$aopName]); - $reflect = Snowflake::getDi()->getReflect($this->_aop[$aopName]); + $reflect = Snowflake::getDi()->getReflect(current($this->_aop[$aopName])); if (!$reflect->isInstantiable() || !$reflect->hasMethod('invoke')) { throw new Exception(ASPECT_ERROR . IAspect::class); }