Skip to content

Commit 1ebc81a

Browse files
author
__
committed
Parse errors only with nonzero exit status of php -l
1 parent 7bba1b9 commit 1ebc81a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/Phpqa.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function! Phpqa#PhpLint()
9090
let l:php_output=system(g:phpqa_php_cmd." -l ".@%." 1>/dev/null")
9191
let l:php_list=split(l:php_output, "\n")
9292

93-
if 0 != len(l:php_list) && match(l:php_list[0],"No syntax errors") == -1
93+
if 0 != v:shell_error && match(l:php_list[0],"No syntax errors") == -1
9494
let l:php_list[0] = "P ".l:php_list[0]
9595
set errorformat=%t\ %m\ in\ %f\ on\ line\ %l
9696
lexpr l:php_list[0]

0 commit comments

Comments
 (0)