diff options
Diffstat (limited to 'lua/conform')
-rw-r--r-- | lua/conform/formatters/phpcbf.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 |