We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c48251b commit a5f1711Copy full SHA for a5f1711
1 file changed
phpstan.el
@@ -100,13 +100,13 @@
100
(when (featurep 'flycheck)
101
(flycheck-define-checker phpstan-checker
102
"PHP static analyzer based on PHPStan."
103
- :command ("phpstan"
104
- "analyze"
105
- "--no-progress"
106
- "--errorFormat=raw"
+ :command ("php" (eval (phpstan-get-executable))
+ "analyze" "--errorFormat=raw" "--no-progress" "--no-interaction"
+ "-c" (eval (phpstan-get-configure-file))
+ "-l" (eval (phpstan-get-level))
107
source)
108
:working-directory (lambda (_) (php-project-get-root-dir))
109
- :enabled (lambda () (locate-dominating-file "phpstan.neon" default-directory))
+ :enabled (lambda () (phpstan-get-configure-file))
110
:error-patterns
111
((error line-start (1+ (not (any ":"))) ":" line ":" (message) line-end))
112
:modes (php-mode)
0 commit comments