fix: php_cs_fixer on php versions >8.3
This commit is contained in:
parent
007c96222a
commit
637bee6961
1 changed files with 14 additions and 1 deletions
|
@ -13,7 +13,7 @@ return {
|
|||
javascriptreact = { "prettierd" },
|
||||
json = { "prettierd" },
|
||||
jsonc = { "prettierd" },
|
||||
php = { "pint", "php_cs_fixer", stop_after_first = true },
|
||||
php = { "php_cs_fixer", stop_after_first = true },
|
||||
toml = { "taplo" },
|
||||
typescript = { "prettierd" },
|
||||
typescriptreact = { "prettierd" },
|
||||
|
@ -36,6 +36,9 @@ return {
|
|||
end,
|
||||
},
|
||||
php_cs_fixer = {
|
||||
env = {
|
||||
PHP_CS_FIXER_IGNORE_ENV = "1",
|
||||
},
|
||||
args = function()
|
||||
local CONFIG_PATH = os.getenv("HOME") .. "/.config/php-cs-fixer/php-cs-fixer.php"
|
||||
return {
|
||||
|
@ -46,6 +49,16 @@ return {
|
|||
}
|
||||
end,
|
||||
},
|
||||
-- pint = {
|
||||
-- args = function()
|
||||
-- local CONFIG_PATH = os.getenv("HOME") .. "/.config/pint/pint.json"
|
||||
-- return {
|
||||
-- "--config",
|
||||
-- CONFIG_PATH,
|
||||
-- "$FILENAME",
|
||||
-- }
|
||||
-- end,
|
||||
-- },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue