File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -287,14 +287,15 @@ it returns the value of `SOURCE' as it is."
287287(defun phpstan-get-command-args ()
288288 " Return command line argument for PHPStan."
289289 (let ((executable (phpstan-get-executable))
290- (args (list " analyze" " --error-format=raw" " --no-progress" " --no-interaction" ))
291290 (path (phpstan-normalize-path (phpstan-get-config-file)))
291+ (autoload (phpstan-get-autoload-file))
292292 (level (phpstan-get-level)))
293- (when path
294- (setq args (append args (list " -c" path))))
295- (when level
296- (setq args (append args (list " -l" level))))
297- (append executable args)))
293+ (append executable
294+ (list " analyze" " --error-format=raw" " --no-progress" " --no-interaction" )
295+ (and path (list " -c" path))
296+ (and autoload (list " -a" autoload))
297+ (and level (list " -l" level))
298+ (list " --" ))))
298299
299300(provide 'phpstan )
300301; ;; phpstan.el ends here
You can’t perform that action at this time.
0 commit comments