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" },
|
javascriptreact = { "prettierd" },
|
||||||
json = { "prettierd" },
|
json = { "prettierd" },
|
||||||
jsonc = { "prettierd" },
|
jsonc = { "prettierd" },
|
||||||
php = { "pint", "php_cs_fixer", stop_after_first = true },
|
php = { "php_cs_fixer", stop_after_first = true },
|
||||||
toml = { "taplo" },
|
toml = { "taplo" },
|
||||||
typescript = { "prettierd" },
|
typescript = { "prettierd" },
|
||||||
typescriptreact = { "prettierd" },
|
typescriptreact = { "prettierd" },
|
||||||
|
@ -36,6 +36,9 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
php_cs_fixer = {
|
php_cs_fixer = {
|
||||||
|
env = {
|
||||||
|
PHP_CS_FIXER_IGNORE_ENV = "1",
|
||||||
|
},
|
||||||
args = function()
|
args = function()
|
||||||
local CONFIG_PATH = os.getenv("HOME") .. "/.config/php-cs-fixer/php-cs-fixer.php"
|
local CONFIG_PATH = os.getenv("HOME") .. "/.config/php-cs-fixer/php-cs-fixer.php"
|
||||||
return {
|
return {
|
||||||
|
@ -46,6 +49,16 @@ return {
|
||||||
}
|
}
|
||||||
end,
|
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