File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ passed to `flycheck-finish-checker-process'."
81
81
" Return path to phpstan configure file, and set buffer execute in side effect."
82
82
(let ((enabled (phpstan-enabled)))
83
83
(prog1 enabled
84
+ (unless flycheck-phpstan--output-filter-added
85
+ (advice-add 'flycheck-finish-checker-process
86
+ :around #'flycheck-phpstan--suppress-no-files-error )
87
+ (setq flycheck-phpstan--output-filter-added t ))
84
88
(when (and enabled
85
89
phpstan-flycheck-auto-set-executable
86
90
(null (bound-and-true-p flycheck-phpstan-executable))
@@ -91,10 +95,6 @@ passed to `flycheck-finish-checker-process'."
91
95
(and (stringp (car-safe phpstan-executable))
92
96
(listp (cdr-safe phpstan-executable)))
93
97
(null phpstan-executable)))
94
- (unless flycheck-phpstan--output-filter-added
95
- (advice-add 'flycheck-finish-checker-process
96
- :around #'flycheck-phpstan--suppress-no-files-error )
97
- (setq flycheck-phpstan--output-filter-added t ))
98
98
(setq-local flycheck-phpstan-executable (car (phpstan-get-executable-and-args)))))))
99
99
100
100
(defun flycheck-phpstan-parse-output (output &optional _checker _buffer )
You can’t perform that action at this time.
0 commit comments