Skip to content

Commit e04bc35

Browse files
committed
Don't attempt to load config file if working dir nil
1 parent 1151b8d commit e04bc35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flycheck-phpstan.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
(defun flycheck-phpstan--enabled-and-set-variable ()
4848
"Return path to phpstan configure file, and set buffer execute in side effect."
49-
(let ((enabled (not (null (or phpstan-working-dir (phpstan-get-config-file))))))
49+
(let ((enabled (and (phpstan-get-working-dir) (phpstan-get-config-file))))
5050
(prog1 enabled
5151
(when (and phpstan-flycheck-auto-set-executable
5252
(not (and (boundp 'flycheck-phpstan-executable)

0 commit comments

Comments
 (0)