phpstan: support config phpstan.dist.neon (#5052)

phpstan will load config from (in order) phpstan.neon, phpstan.neon.dist, or
phpstan.dist.neon.
This commit is contained in:
Bill Ruddock
2025-10-26 06:55:40 +00:00
committed by GitHub
parent 21d5de18b2
commit 59c6b4f7b0
2 changed files with 15 additions and 0 deletions

View File

@@ -87,6 +87,10 @@ function! ale_linters#php#phpstan#FindConfigFile(buffer) abort
let l:result = ale#path#FindNearestFile(a:buffer, 'phpstan.neon.dist')
endif
if empty(l:result)
let l:result = ale#path#FindNearestFile(a:buffer, 'phpstan.dist.neon')
endif
return l:result
endfunction