Skip to content

php7 and stdout #46

Description

@markkimsal

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions