We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f775c9 commit 795c172Copy full SHA for 795c172
flycheck-phpstan.el
@@ -59,9 +59,10 @@
59
(listp (cdr-safe phpstan-executable)))
60
(null phpstan-executable)))
61
(set (make-local-variable 'flycheck-phpstan-executable)
62
- (if (eq 'docker phpstan-executable)
63
- phpstan-docker-executable
64
- (car phpstan-executable)))))))
+ (cond
+ ((eq 'docker phpstan-executable) phpstan-docker-executable)
+ ((stringp phpstan-executable) phpstan-executable)
65
+ (t (car phpstan-executable))))))))
66
67
(flycheck-define-checker phpstan
68
"PHP static analyzer based on PHPStan."
0 commit comments