aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/formatters
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/formatters')
-rw-r--r--lua/conform/formatters/php_cs_fixer.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/conform/formatters/php_cs_fixer.lua b/lua/conform/formatters/php_cs_fixer.lua
index e63ec42..bff5a62 100644
--- a/lua/conform/formatters/php_cs_fixer.lua
+++ b/lua/conform/formatters/php_cs_fixer.lua
@@ -12,4 +12,5 @@ return {
}, "php-cs-fixer"),
args = { "fix", "$FILENAME" },
stdin = false,
+ cwd = util.root_file({ "composer.json" }),
}