emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phpinspect 8c23a3fc2d 4/4: Use phpinspect--class-name,


From: ELPA Syncer
Subject: [elpa] externals/phpinspect 8c23a3fc2d 4/4: Use phpinspect--class-name, as index can be unset for live edited classes
Date: Thu, 31 Aug 2023 09:58:40 -0400 (EDT)

branch: externals/phpinspect
commit 8c23a3fc2d78e8a1e24890105e20c71461d3d3a4
Author: Hugo Thunnissen <devel@hugot.nl>
Commit: Hugo Thunnissen <devel@hugot.nl>

    Use phpinspect--class-name, as index can be unset for live edited classes
---
 phpinspect-class.el | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/phpinspect-class.el b/phpinspect-class.el
index 2e18713783..2ee761e508 100644
--- a/phpinspect-class.el
+++ b/phpinspect-class.el
@@ -218,9 +218,7 @@ Conditionally executes BODY depending on
     (let ((existing (gethash (phpinspect--function-name-symbol method)
                              (phpinspect--class-static-methods class))))
       (if existing
-          (phpinspect--merge-method
-           (alist-get 'class-name (phpinspect--class-index class))
-           existing method extended)
+          (phpinspect--merge-method (phpinspect--class-name class) existing 
method extended)
         (setf (phpinspect--function--inherited method) extended)
         (phpinspect--class-set-static-method class method)))))
 
@@ -232,9 +230,7 @@ Conditionally executes BODY depending on
                               (phpinspect--class-methods class))))
 
       (if existing
-          (phpinspect--merge-method
-           (alist-get 'class-name (phpinspect--class-index class))
-           existing method extended)
+          (phpinspect--merge-method (phpinspect--class-name class) existing 
method extended)
         (setf (phpinspect--function--inherited method) extended)
         (phpinspect--class-set-method class method)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]