Skip to content

Commit a91ef35

Browse files
committed
Fix position
1 parent 540c379 commit a91ef35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flycheck-phpstan.el

+4-4
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)