feat(php): update php setup

This commit is contained in:
2026-02-11 18:52:08 +01:00
parent af2d8df323
commit 778610083e
2 changed files with 3 additions and 6 deletions
+3 -5
View File
@@ -6,12 +6,9 @@ local util = require("util")
return {
settings = {
intelephense = {
environment = {
phpVersion = "8.4",
},
format = {
enable = true,
braces = "psr12",
braces = "per",
},
},
},
@@ -21,10 +18,10 @@ return {
Linter.add(bufnr, {
cmd = {
"phpcs",
"--standard=PSR12",
"--report=emacs",
"-s",
"-q",
"--stdin-path=%file%",
"-",
},
stdin = true,
@@ -38,6 +35,7 @@ return {
},
zero_idx_col = true,
zero_idx_lnum = true,
ignore_stderr = true,
})
vim.keymap.set("n", "<leader>lf", function()