runtime(compiler): Add PHPStan compiler
Commit:
https://github.com/vim/vim/commit/f2290a682365c3a99e582bb74c99b0e5c4b98113
Author: Dietrich Moerman <
dietrich...@gmail.com>
Date: Thu Jul 17 20:27:18 2025 +0200
runtime(compiler): Add PHPStan compiler
closes:
https://github.com/vim/vim/issues/17781
Signed-off-by: Dietrich Moerman <
dietrich...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index cb73fc4a5..98852e920 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -76,6 +76,7 @@ runtime/compiler/pandoc.vim @Konfekt
runtime/compiler/perl.vim @petdance @heptite
runtime/compiler/perlcritic.vim @petdance @dkearns
runtime/compiler/php.vim @dkearns
+runtime/compiler/phpstan.vim @dietrichm
runtime/compiler/podchecker.vim @petdance @dkearns
runtime/compiler/powershell.vim @heaths
runtime/compiler/raco.vim @benknoble
diff --git a/runtime/compiler/phpstan.vim b/runtime/compiler/phpstan.vim
new file mode 100644
index 000000000..7d1592be8
--- /dev/null
+++ b/runtime/compiler/phpstan.vim
@@ -0,0 +1,12 @@
+" Vim compiler file
+" Compiler: PHPStan
+" Maintainer: Dietrich Moerman <
dietrich...@gmail.com>
+" Last Change: 2025 Jul 17
+
+if exists("current_compiler")
+ finish
+endif
+let current_compiler = "phpstan"
+
+CompilerSet makeprg=composer\ exec\ --\ phpstan\ analyse\ -v\ --no-progress\ --error-format=raw
+CompilerSet errorformat=%f:%l:%m,%-G%.%#