From 96f5428a5e0609787c28430ede63d56d3b8d3efd Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 9 Sep 2016 17:53:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=AF=B9=E8=B1=A1=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E4=BC=A0=E5=85=A5=E5=90=8E=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?unset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/App.php b/library/think/App.php index bc741548..4dfd68c8 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -253,6 +253,7 @@ class App $className = $class->getName(); if (isset($vars[$name]) && $vars[$name] instanceof $className) { $args[] = $vars[$name]; + unset($vars[$name]); } else { $args[] = method_exists($className, 'instance') ? $className::instance() : new $className(); }