Skip to content

Commit c13ea17

Browse files
committed
Fix to call php-project-get-root-dir
1 parent a2b3513 commit c13ea17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flymake-phpstan.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
;; https://www.gnu.org/software/emacs/manual/html_node/flymake/An-annotated-example-backend.html
3535

3636
;;; Code:
37+
(require 'php-project)
3738
(require 'flymake)
3839
(require 'phpstan)
3940
(eval-when-compile
@@ -94,7 +95,7 @@
9495
(let ((source (current-buffer)))
9596
(save-restriction
9697
(widen)
97-
(setq flymake-phpstan--proc (flymake-phpstan-make-process (php-project-root) command-args report-fn source))
98+
(setq flymake-phpstan--proc (flymake-phpstan-make-process (php-project-get-root-dir) command-args report-fn source))
9899
(process-send-region flymake-phpstan--proc (point-min) (point-max))
99100
(process-send-eof flymake-phpstan--proc)))))
100101

0 commit comments

Comments
 (0)