Skip to content

Commit d4271b2

Browse files
authored
Merge pull request #7 from kermorgant/patch-1
let phpstan-executable be absolute path to phpstan
2 parents 3653f2a + 5bf29d4 commit d4271b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: phpstan.el

+1
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ it returns the value of `SOURCE' as it is."
218218
(defun phpstan-get-executable ()
219219
"Return PHPStan excutable file and arguments."
220220
(cond
221+
((file-exists-p phpstan-executable) (list phpstan-executable))
221222
((eq 'docker phpstan-executable)
222223
(list "run" "--rm" "-v"
223224
(concat (expand-file-name (php-project-get-root-dir)) ":/app")

0 commit comments

Comments
 (0)