File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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'."
8181 " Return path to phpstan configure file, and set buffer execute in side effect."
8282 (let ((enabled (phpstan-enabled)))
8383 (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 ))
8488 (when (and enabled
8589 phpstan-flycheck-auto-set-executable
8690 (null (bound-and-true-p flycheck-phpstan-executable))
@@ -91,10 +95,6 @@ passed to `flycheck-finish-checker-process'."
9195 (and (stringp (car-safe phpstan-executable))
9296 (listp (cdr-safe phpstan-executable)))
9397 (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 ))
9898 (setq-local flycheck-phpstan-executable (car (phpstan-get-executable-and-args)))))))
9999
100100(defun flycheck-phpstan-parse-output (output &optional _checker _buffer )
You can’t perform that action at this time.
0 commit comments