Skip to content

Commit 102bcb4

Browse files
committed
Use phpstan-working-dir instead of (phpstan-get-working-dir)
The function is also called in phpstan-get-config-file, so it just refers to the phpstan-working-dir variable.
1 parent e32ef8e commit 102bcb4

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 (or (phpstan-get-working-dir) (phpstan-get-config-file))))
49+
(let ((enabled (or phpstan-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)