File tree 1 file changed +2
-1
lines changed
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."
218
218
(defun phpstan-get-executable ()
219
219
" Return PHPStan excutable file and arguments."
220
220
(cond
221
- ((file-exists-p phpstan-executable) (list phpstan-executable))
222
221
((eq 'docker phpstan-executable)
223
222
(list " run" " --rm" " -v"
224
223
(concat (expand-file-name (php-project-get-root-dir)) " :/app" )
225
224
" phpstan/phpstan" ))
226
225
((and (consp phpstan-executable)
227
226
(eq 'root (car phpstan-executable)))
228
227
(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))
229
230
((and phpstan-flycheck-auto-set-executable
230
231
(listp phpstan-executable)
231
232
(stringp (car phpstan-executable))
You can’t perform that action at this time.
0 commit comments