Skip to content

Commit 795c172

Browse files
committed
fix get executable path method
1 parent 5f775c9 commit 795c172

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

flycheck-phpstan.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@
5959
(listp (cdr-safe phpstan-executable)))
6060
(null phpstan-executable)))
6161
(set (make-local-variable 'flycheck-phpstan-executable)
62-
(if (eq 'docker phpstan-executable)
63-
phpstan-docker-executable
64-
(car phpstan-executable)))))))
62+
(cond
63+
((eq 'docker phpstan-executable) phpstan-docker-executable)
64+
((stringp phpstan-executable) phpstan-executable)
65+
(t (car phpstan-executable))))))))
6566

6667
(flycheck-define-checker phpstan
6768
"PHP static analyzer based on PHPStan."

0 commit comments

Comments
 (0)