From 23b85fca6ad145403f7d8b7df0676a4876b35102 Mon Sep 17 00:00:00 2001 From: Hugo Thunnissen Date: Mon, 19 Aug 2024 10:29:00 +0200 Subject: [PATCH] Pop variable from arg-list when indexed --- phpinspect-index.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpinspect-index.el b/phpinspect-index.el index 20a27ab..015a36a 100644 --- a/phpinspect-index.el +++ b/phpinspect-index.el @@ -55,7 +55,7 @@ (setq param-annotation (phpinspect--find-var-annotation-for-variable comment-before (cadr (car arg-list)) #'phpinspect-param-annotation-p))) - (push (cons (cadr (car arg-list)) + (push (cons (cadr (pop arg-list)) (funcall type-resolver (phpinspect--make-type :name (phpinspect-var-annotation-type param-annotation))))