Skip to content

Commit 9edd6dd

Browse files
committed
Add :options keyword to phpstan-get-command-args
1 parent fdccb9b commit 9edd6dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

phpstan.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ it returns the value of `SOURCE' as it is."
368368
((executable-find "phpstan") (list (executable-find "phpstan")))
369369
(t (error "PHPStan executable not found")))))))
370370

371-
(cl-defun phpstan-get-command-args (&key include-executable use-pro args format)
371+
(cl-defun phpstan-get-command-args (&key include-executable use-pro args format options)
372372
"Return command line argument for PHPStan."
373373
(let ((executable-and-args (phpstan-get-executable-and-args))
374374
(path (phpstan-normalize-path (phpstan-get-config-file)))
@@ -393,8 +393,8 @@ it returns the value of `SOURCE' as it is."
393393
"--xdebug"))
394394
(list phpstan--use-xdebug-option))
395395
(phpstan-use-xdebug-option (list "--xdebug")))
396-
(list "--")
397-
args)))
396+
options
397+
(and args (cons "--" args)))))
398398

399399
(provide 'phpstan)
400400
;;; phpstan.el ends here

0 commit comments

Comments
 (0)