Skip to content

Commit 5bf29d4

Browse files
authored
let phpstan-executable be absolute path to phpstan
I'll let you see if this is a good way to handle this use case, but adding this line let me link phpstan-executable to the absolute path of phpstan. Otherwise, it was ignored : #6
1 parent 3653f2a commit 5bf29d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

phpstan.el

Lines changed: 1 addition & 0 deletions
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)