File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 48
48
" Return path to phpstan configure file, and set buffer execute in side effect."
49
49
(let ((enabled (phpstan-enabled)))
50
50
(prog1 enabled
51
- (when (and phpstan-flycheck-auto-set-executable
51
+ (when (and enabled
52
+ phpstan-flycheck-auto-set-executable
52
53
(null (bound-and-true-p flycheck-phpstan-executable))
53
54
(or (stringp phpstan-executable)
54
55
(eq 'docker phpstan-executable)
57
58
(and (stringp (car-safe phpstan-executable))
58
59
(listp (cdr-safe phpstan-executable)))
59
60
(null phpstan-executable)))
60
- (set (make-local-variable 'flycheck-phpstan-executable )
61
- (cond
62
- ((eq 'docker phpstan-executable) phpstan-docker-executable)
63
- ((stringp phpstan-executable) phpstan-executable)
64
- (t (car phpstan-executable))))))))
61
+ (setq-local flycheck-phpstan-executable (car (phpstan-get-executable-and-options)))))))
65
62
66
63
(flycheck-define-checker phpstan
67
64
" PHP static analyzer based on PHPStan."
You can’t perform that action at this time.
0 commit comments