joonty / vim-phpqa

PHP QA tools for Vim
http://www.joncairns.com
MIT License
290 stars 32 forks source link

php7 and stdout #46

Open markkimsal opened 8 years ago

markkimsal commented 8 years ago

my copy of php7 cli does not put syntax errors onto stderr.

PHP 7.0.12-1+deb.sury.org~trusty+1 (cli) ( NTS )

I had to make this change.

87 " Run the PHP linter to check for syntax errors 88 function! Phpqa#PhpLint() 89 if &filetype == "php" 90 if 0 != len(g:phpqa_php_cmd) 91 let l:bufNo = bufnr('%') 92 call s:RemoveSigns() 93 "let l:php_output=system(g:phpqa_php_cmd." -l ".@%." 1>/dev/null") 94 let l:php_output=system(g:phpqa_php_cmd." -l ".@%." ") 95 let l:php_list=split(l:php_output, "\n")

I think this also fixes the vim-fugitive problem.