Skip to content

Commit 6840f6c

Browse files
committed
Fix phpstan executable
1 parent 6fa077b commit 6840f6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

phpstan.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@
9191
(expand-file-name (cdr executable) (php-project-get-root-dir))))
9292
(if (file-exists-p executable)
9393
executable
94-
(if (executable-find "phpstan")
95-
"phpstan"
96-
(error "PHPStan executable not found")))))
94+
(or (executable-find "phpstan")
95+
(error "PHPStan executable not found")))))
9796

9897
;;;###autoload
9998
(when (featurep 'flycheck)

0 commit comments

Comments
 (0)