Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php7 and stdout #46

Open
markkimsal opened this issue Oct 29, 2016 · 0 comments
Open

php7 and stdout #46

markkimsal opened this issue Oct 29, 2016 · 0 comments

Comments

@markkimsal
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant