Use match-sequence to detect "newed" objects

master
Hugo Thunnissen 4 weeks ago
parent 1ab4a3b1f5
commit 81194568e3

@ -495,8 +495,10 @@ value/type."
:fully-qualified t :fully-qualified t
:collection t :collection t
:contains collection-contains))) :contains collection-contains)))
((and (phpinspect-word-p (car expression)) ((phpinspect--match-sequence expression
(string= (cadar expression) "new")) :m '(:word "new")
:f #'phpinspect-word-p
:f #'phpinspect-list-p)
(funcall (funcall
type-resolver (phpinspect--make-type :name (cadadr expression)))) type-resolver (phpinspect--make-type :name (cadadr expression))))

Loading…
Cancel
Save