File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,12 @@ of GitHub.")
127127 :type '(string )
128128 :safe #'stringp
129129 :group 'phpactor )
130+
131+ (defun phpactor-reset-executable (&rest _args )
132+ " Reset `phpactor-executable' variable by `phpactor--find-executable' ."
133+ (prog1
134+ (setq phpactor-executable (phpactor--find-executable))
135+ (remove-hook 'compilation-finish-functions #'phpactor-reset-executable )))
130136
131137; ; Utility functions
132138
@@ -152,7 +158,7 @@ of GitHub.")
152158 (php-runtime-quote-string (concat directory file))
153159 (php-runtime-quote-string (concat phpactor-install-directory file)))
154160 do (php-runtime-expr code))
155- (add-hook 'compilation-finish-functions ( lambda ( buffer desc ) ( setq phpactor-executable (phpactor--find- executable))) )
161+ (add-hook 'compilation-finish-functions ' phpactor-reset- executable )
156162 (composer nil " install" " --no-dev" )))
157163
158164(defalias 'phpactor-update #'phpactor-install-or-update )
You can’t perform that action at this time.
0 commit comments