From ce427b03b9cc428ee7a64cb77487ed19efec202d Mon Sep 17 00:00:00 2001 From: Steven Arcangeli <506791+stevearc@users.noreply.github.com> Date: Tue, 3 Oct 2023 20:44:35 -0700 Subject: fix: phpcbf invalid stdin-path arguments (#108) --- lua/conform/formatters/phpcbf.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/conform/formatters/phpcbf.lua b/lua/conform/formatters/phpcbf.lua index 5d3461e..38f3155 100644 --- a/lua/conform/formatters/phpcbf.lua +++ b/lua/conform/formatters/phpcbf.lua @@ -9,7 +9,9 @@ return { command = util.find_executable({ "vendor/bin/phpcbf", }, "phpcbf"), - args = { "-q", "--stdin-path=", "$FILENAME", "-" }, + args = function(ctx) + return { "-q", "--stdin-path=" .. ctx.filename, "-" } + end, stdin = true, -- 0: no errors found -- 1: errors found -- cgit v1.2.3-70-g09d2