Fix some bugs so the PHP language server will show errors at least once

This commit is contained in:
w0rp
2017-07-30 14:42:00 +01:00
parent 63b9d9e9df
commit 84af543907
2 changed files with 5 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ endfunction
function! ale_linters#php#langserver#GetProjectRoot(buffer) abort
let l:git_path = ale#path#FindNearestDirectory(a:buffer, '.git')
return !empty(l:git_path) ? fnamemodify(l:git_path, ':h') : ''
return !empty(l:git_path) ? fnamemodify(l:git_path, ':h:h') : ''
endfunction
call ale#linter#Define('php', {