branch: externals/phpinspect
commit d806c4ef4a40329097f25e1761d700130b63eaa5
Author: Hugo Thunnissen <de...@hugot.nl>
Commit: Hugo Thunnissen <de...@hugot.nl>

    Use class-keyword handler regexp when extracting class name from declaration
---
 phpinspect-type.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/phpinspect-type.el b/phpinspect-type.el
index e113b85a19..3d6ccbb4ec 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))

Reply via email to