File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 49
49
(let ((enabled (phpstan-enabled)))
50
50
(prog1 enabled
51
51
(when (and phpstan-flycheck-auto-set-executable
52
- (null (bound-and-true-p flycheck-phpstan-executable))
52
+ (not (and (boundp 'flycheck-phpstan-executable )
53
+ (symbol-value 'flycheck-phpstan-executable )))
53
54
(or (stringp phpstan-executable)
54
55
(eq 'docker phpstan-executable)
55
56
(and (eq 'root (car-safe phpstan-executable))
56
57
(stringp (cdr-safe phpstan-executable)))
57
58
(and (stringp (car-safe phpstan-executable))
58
59
(listp (cdr-safe phpstan-executable)))
59
60
(null phpstan-executable)))
60
- (setq-local flycheck-phpstan-executable (nth 0 (phpstan-get-executable)))))))
61
+ (set (make-local-variable 'flycheck-phpstan-executable )
62
+ (cond
63
+ ((eq 'docker phpstan-executable) phpstan-docker-executable)
64
+ ((stringp phpstan-executable) phpstan-executable)
65
+ (t (car phpstan-executable))))))))
61
66
62
67
(flycheck-define-checker phpstan
63
68
" PHP static analyzer based on PHPStan."
You can’t perform that action at this time.
0 commit comments