Skip to content

Commit

Permalink
fix: phpcbf invalid stdin-path arguments (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc authored Oct 4, 2023
1 parent 1511ae2 commit ce427b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/conform/formatters/phpcbf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce427b0

Please sign in to comment.