Skip to content

Commit 56dd009

Browse files
committed
Merge pull request #30 from paprykarz/master
Parse errors only with nonzero exit status of php -l
2 parents c8cba1b + 1ebc81a commit 56dd009

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
@@ -93,7 +93,7 @@ function! Phpqa#PhpLint()
9393
let l:php_output=system(g:phpqa_php_cmd." -l ".@%." 1>/dev/null")
9494
let l:php_list=split(l:php_output, "\n")
9595

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

0 commit comments

Comments
 (0)