File tree 1 file changed +7
-6
lines changed
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."
287
287
(defun phpstan-get-command-args ()
288
288
" Return command line argument for PHPStan."
289
289
(let ((executable (phpstan-get-executable))
290
- (args (list " analyze" " --error-format=raw" " --no-progress" " --no-interaction" ))
291
290
(path (phpstan-normalize-path (phpstan-get-config-file)))
291
+ (autoload (phpstan-get-autoload-file))
292
292
(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 " --" ))))
298
299
299
300
(provide 'phpstan )
300
301
; ;; phpstan.el ends here
You can’t perform that action at this time.
0 commit comments