From 5bf29d48776c81e96bb14fc93b556546c4614d53 Mon Sep 17 00:00:00 2001 From: Mikael Kermorgant Date: Tue, 1 May 2018 23:06:01 +0300 Subject: [PATCH] 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 : https://github.com/emacs-php/phpstan.el/issues/6 --- phpstan.el | 1 + 1 file changed, 1 insertion(+) diff --git a/phpstan.el b/phpstan.el index 9a79672..5c9e9d9 100644 --- a/phpstan.el +++ b/phpstan.el @@ -218,6 +218,7 @@ it returns the value of `SOURCE' as it is." (defun phpstan-get-executable () "Return PHPStan excutable file and arguments." (cond + ((file-exists-p phpstan-executable) (list phpstan-executable)) ((eq 'docker phpstan-executable) (list "run" "--rm" "-v" (concat (expand-file-name (php-project-get-root-dir)) ":/app")