summaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
authorSteven Arcangeli <506791+stevearc@users.noreply.github.com>2023-10-03 20:44:35 -0700
committerGitHub <noreply@github.com>2023-10-03 20:44:35 -0700
commitce427b03b9cc428ee7a64cb77487ed19efec202d (patch)
tree37d6cc87d00c8145631827042baa90c7d10331f0 /lua/conform/formatters
parent1511ae2ab68ad985dd1b3764ce17af7f0355019c (diff)
fix: phpcbf invalid stdin-path arguments (#108)
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/phpcbf.lua4
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