From b4d889b682c2b55508f006ef8d1377a4ca3d9739 Mon Sep 17 00:00:00 2001 From: ttys3 Date: Mon, 4 Jan 2021 23:10:39 +0800 Subject: [PATCH] fix: proper initialization options call in php intelephense --- ale_linters/php/intelephense.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 ale_linters/php/intelephense.vim diff --git a/ale_linters/php/intelephense.vim b/ale_linters/php/intelephense.vim old mode 100644 new mode 100755 index e9e07d1f..aca619e3 --- a/ale_linters/php/intelephense.vim +++ b/ale_linters/php/intelephense.vim @@ -18,8 +18,8 @@ function! ale_linters#php#intelephense#GetProjectRoot(buffer) abort return !empty(l:git_path) ? fnamemodify(l:git_path, ':h:h') : '' endfunction -function! ale_linters#php#intelephense#GetInitializationOptions() abort - return ale#Get('php_intelephense_config') +function! ale_linters#php#intelephense#GetInitializationOptions(buffer) abort + return ale#Var(a:buffer, 'php_intelephense_config') endfunction call ale#linter#Define('php', {