summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/conform/formatters/phpcbf.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/conform/formatters/phpcbf.lua b/lua/conform/formatters/phpcbf.lua
index 6c6027e..7f81b8b 100644
--- a/lua/conform/formatters/phpcbf.lua
+++ b/lua/conform/formatters/phpcbf.lua
@@ -9,10 +9,10 @@ return {
command = util.find_executable({
"vendor/bin/phpcbf",
}, "phpcbf"),
- args = function(self, ctx)
- return { "-q", "--stdin-path=" .. ctx.filename, "-" }
- end,
- stdin = true,
+ args = { "$FILENAME" },
+ stdin = false,
+ -- phpcbf ignores hidden files, so we have to override the default here
+ tmpfile_format = "conform.$RANDOM.$FILENAME",
-- 0: no errors found
-- 1: errors found
-- 2: fixable errors found