File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 5151 (when (and phpstan-flycheck-auto-set-executable
5252 (not (and (boundp 'flycheck-phpstan-executable )
5353 (symbol-value 'flycheck-phpstan-executable )))
54- (or (eq 'docker phpstan-executable)
55- (and (consp phpstan-executable)
56- (stringp (car phpstan-executable))
57- (listp (cdr phpstan-executable)))))
54+ (or (stringp phpstan-executable)
55+ (eq 'docker phpstan-executable)
56+ (and (eq 'root (car-safe phpstan-executable))
57+ (stringp (cdr-safe phpstan-executable)))
58+ (and (stirngp (car-safe phpstan-executable))
59+ (listp (cdr-safe phpstan-executable)))
60+ (null phpstan-executable)))
5861 (set (make-local-variable 'flycheck-phpstan-executable )
59- (if (eq 'docker phpstan-executable)
60- phpstan-docker-executable
61- (car phpstan-executable)))))))
62+ (cond
63+ ((eq 'docker phpstan-executable) phpstan-docker-executable)
64+ ((stringp phpstan-executable) phpstan-executable)
65+ (t (car phpstan-executable))))))))
6266
6367(flycheck-define-checker phpstan
6468 " PHP static analyzer based on PHPStan."
You can’t perform that action at this time.
0 commit comments