Skip to content

Commit 169d903

Browse files
committed
Return a list instead of bare path string.
GitHub-Issue: 10 #10 This is a simple mistake. This function requires a string list, this pattern assigns just a string to the variable. Since a character string is a type of sequence, the append function treats it as a vector of char(int) instead of type error. This issue was reported by @kwvanderlinde, thanks!
1 parent 97f6435 commit 169d903

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: phpstan.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ it returns the value of `SOURCE' as it is."
224224
"phpstan/phpstan"))
225225
((and (consp phpstan-executable)
226226
(eq 'root (car phpstan-executable)))
227-
(expand-file-name (cdr phpstan-executable) (php-project-get-root-dir)))
227+
(list
228+
(expand-file-name (cdr phpstan-executable) (php-project-get-root-dir))))
228229
((and (stringp phpstan-executable) (file-exists-p phpstan-executable))
229230
(list phpstan-executable))
230231
((and phpstan-flycheck-auto-set-executable

0 commit comments

Comments
 (0)