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; }