File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 100100(when (featurep 'flycheck )
101101 (flycheck-define-checker phpstan-checker
102102 " PHP static analyzer based on PHPStan."
103- :command (" phpstan "
104- " analyze"
105- " --no-progress "
106- " --errorFormat=raw "
103+ :command (" php " ( eval (phpstan-get-executable))
104+ " analyze" " --errorFormat=raw " " --no-progress " " --no-interaction "
105+ " -c " ( eval (phpstan-get-configure-file))
106+ " -l " ( eval (phpstan-get-level))
107107 source )
108108 :working-directory (lambda (_ ) (php-project-get-root-dir))
109- :enabled (lambda () (locate-dominating-file " phpstan.neon " default-directory ))
109+ :enabled (lambda () (phpstan-get-configure-file ))
110110 :error-patterns
111111 ((error line-start (1+ (not (any " :" ))) " :" line " :" (message ) line-end))
112112 :modes (php-mode)
You can’t perform that action at this time.
0 commit comments