Only attempt to return the inside class name when it is non-nil

WIP
Hugo Thunnissen 3 years ago
parent f8689ac9df
commit 4c2b3dd601

@ -1487,11 +1487,10 @@ resolve types of function argument variables."
(phpinspect--real-type
types
namespace
(if (or (string= type "self") (string= type "static"))
(if (and inside-class-name (or (string= type "self") (string= type "static")))
(progn
(phpinspect--log "Returning inside class name for %s : %s"
type inside-class-name)
inside-class-name)
;; else
type)))))

Loading…
Cancel
Save