From adb7ff5a03d619747f6179e7a83101f1b3cee8e0 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Mon, 8 Feb 2021 17:28:25 +0800 Subject: [PATCH] fixed:gitee Issue#I37RKN --- extend/catcher/Utils.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extend/catcher/Utils.php b/extend/catcher/Utils.php index 7eb3fc4..5e9142a 100644 --- a/extend/catcher/Utils.php +++ b/extend/catcher/Utils.php @@ -136,6 +136,10 @@ class Utils $docComment = (new \ReflectionClass($controller))->getMethod($action)->getDocComment(); + if (! $docComment) { + return false; + } + return strpos($docComment, config('catch.permissions.method_auth_mark')) !== false; }