diff --git a/phpinspect-type.el b/phpinspect-type.el index e113b85..3d6ccbb 100644 --- a/phpinspect-type.el +++ b/phpinspect-type.el @@ -320,7 +320,10 @@ mutability of the variable") (setq encountered-extends nil) (phpinspect--log "Class %s implements in interface" class-name) (setq encountered-implements t)) - ((string= (cadr word) "class") + ((string-match-p + (eval-when-compile + (concat "^" (phpinspect--class-keyword-handler-regexp) "?$")) + (cadr word)) (setq encountered-class t)) (t (phpinspect--log "Calling Resolver from index-class on %s" (cadr word))