Skip to content

Commit 8a6720a

Browse files
committed
Fix phpstan-get-command-args
1 parent 206573c commit 8a6720a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpstan.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ it returns the value of `SOURCE' as it is."
516516
"--xdebug"))
517517
(list phpstan--use-xdebug-option))
518518
(phpstan-use-xdebug-option (list "--xdebug")))
519+
options
519520
(when editor
520521
(let ((original-file (plist-get editor :original-file)))
521522
(cond
@@ -526,8 +527,7 @@ it returns the value of `SOURCE' as it is."
526527
"--instead-of" original-file
527528
"--" original-file))
528529
((list "--" (funcall (plist-get editor :inplace)))))))
529-
options
530-
(and args (cons "--" args)))))
530+
(if editor args (cons "--" args)))))
531531

532532
(defun phpstan-update-ignorebale-errors-from-json-buffer (errors)
533533
"Update `phpstan--ignorable-errors' variable by ERRORS."

0 commit comments

Comments
 (0)