File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,7 @@ All notable changes of the phpactor.el are documented in this file using the [Ke
88
99* Add ` phpstan-analyze-this-file ` command
1010* Add ` phpstan.dist.neon ` to ` phpstan-get-config-file ` as PHPStan config files.
11+
12+ ### Changed
13+
14+ * Make flycheck analyze the original file directly instead of temporary files when there are no changes to the file.
Original file line number Diff line number Diff line change 6363(flycheck-define-checker phpstan
6464 " PHP static analyzer based on PHPStan."
6565 :command (" php" (eval (phpstan-get-command-args))
66- (eval (phpstan-normalize-path
67- (flycheck-save-buffer-to-temp #'flycheck-temp-file-inplace )
68- (flycheck-save-buffer-to-temp #'flycheck-temp-file-system ))))
66+ (eval (if (or (buffer-modified-p ) (not buffer-file-name))
67+ (phpstan-normalize-path
68+ (flycheck-save-buffer-to-temp #'flycheck-temp-file-inplace ))
69+ buffer-file-name)))
6970 :working-directory (lambda (_ ) (phpstan-get-working-dir))
7071 :enabled (lambda () (flycheck-phpstan--enabled-and-set-variable))
7172 :error-patterns
You can’t perform that action at this time.
0 commit comments