From 53233db821a2a855777504106ccb5af1d2d34fc9 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 19 Oct 2016 12:27:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BApp=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/App.php b/library/think/App.php index 69833598..d66e3438 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -282,7 +282,7 @@ class App } else { if (method_exists($className, 'invoke')) { $method = new \ReflectionMethod($className, 'invoke'); - if ($method->isStatic()) { + if ($method->isPublic() && $method->isStatic()) { $args[] = $className::invoke(); continue; }