From 8a6720a58589cb5c9a1da2b96475440f472932c5 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Thu, 22 May 2025 22:14:16 +0900 Subject: [PATCH] Fix phpstan-get-command-args --- phpstan.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan.el b/phpstan.el index b0135d8..103403d 100644 --- a/phpstan.el +++ b/phpstan.el @@ -516,6 +516,7 @@ it returns the value of `SOURCE' as it is." "--xdebug")) (list phpstan--use-xdebug-option)) (phpstan-use-xdebug-option (list "--xdebug"))) + options (when editor (let ((original-file (plist-get editor :original-file))) (cond @@ -526,8 +527,7 @@ it returns the value of `SOURCE' as it is." "--instead-of" original-file "--" original-file)) ((list "--" (funcall (plist-get editor :inplace))))))) - options - (and args (cons "--" args))))) + (if editor args (cons "--" args))))) (defun phpstan-update-ignorebale-errors-from-json-buffer (errors) "Update `phpstan--ignorable-errors' variable by ERRORS."