Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions phpstan.el
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ it returns the value of `SOURCE' as it is."
(eq 'root (car phpstan-executable)))
(list
(expand-file-name (cdr phpstan-executable) (php-project-get-root-dir))))
((and (stringp phpstan-executable) (file-exists-p phpstan-executable))
((and (stringp phpstan-executable) (file-executable-p phpstan-executable))
(list phpstan-executable))
((and phpstan-flycheck-auto-set-executable
(listp phpstan-executable)
Expand All @@ -297,7 +297,7 @@ it returns the value of `SOURCE' as it is."
(let ((vendor-phpstan (expand-file-name "vendor/bin/phpstan"
(php-project-get-root-dir))))
(cond
((file-exists-p vendor-phpstan) (list vendor-phpstan))
((file-executable-p vendor-phpstan) (list vendor-phpstan))
((executable-find "phpstan") (list (executable-find "phpstan")))
(t (error "PHPStan executable not found")))))))

Expand Down