File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -218,14 +218,15 @@ 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))
222221 ((eq 'docker phpstan-executable)
223222 (list " run" " --rm" " -v"
224223 (concat (expand-file-name (php-project-get-root-dir)) " :/app" )
225224 " phpstan/phpstan" ))
226225 ((and (consp phpstan-executable)
227226 (eq 'root (car phpstan-executable)))
228227 (expand-file-name (cdr phpstan-executable) (php-project-get-root-dir)))
228+ ((and (stringp phpstan-executable) (file-exists-p phpstan-executable))
229+ (list phpstan-executable))
229230 ((and phpstan-flycheck-auto-set-executable
230231 (listp phpstan-executable)
231232 (stringp (car phpstan-executable))
You can’t perform that action at this time.
0 commit comments