Skip to content

Commit 3f8dc20

Browse files
authored
Merge pull request #30 from kermorgant/phpactor-invocation
replace shell-command-on-region by call-process-region
2 parents 3696dfc + ed4b0e7 commit 3f8dc20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpactor.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
(with-current-buffer (get-buffer-create "*Phpactor Input*")
131131
(erase-buffer)
132132
(insert json)
133-
(shell-command-on-region (point-min) (point-max) cmd output)
133+
(call-process-region (point-min) (point-max) (phpactor-find-executable) nil output nil "rpc" (format "--working-dir=%s" (phpactor-get-working-dir)))
134134
(with-current-buffer output
135135
(goto-char (point-min))
136136
(json-read-object)))))

0 commit comments

Comments
 (0)