diff options
author | Pawel Bogut <pawel.bogut@gmail.com> | 2017-05-08 21:17:54 +0100 |
---|---|---|
committer | Pawel Bogut <pawel.bogut@gmail.com> | 2017-05-08 21:17:54 +0100 |
commit | d7bdaeeab0506a526f47b8388a9fa7597d7232c0 (patch) | |
tree | fbc15111966cdcaef796f6db8571b33de7a5b160 /ale_linters/php | |
parent | 14f3fc777fc4a5e1fd1e1a7b75f4edf84b0a9af0 (diff) | |
download | ale-d7bdaeeab0506a526f47b8388a9fa7597d7232c0.zip |
Read errors from stdout only (and make sure they are displayed)
Diffstat (limited to 'ale_linters/php')
-rw-r--r-- | ale_linters/php/php.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/php/php.vim b/ale_linters/php/php.vim index 6d151686..7c9e8c18 100644 --- a/ale_linters/php/php.vim +++ b/ale_linters/php/php.vim @@ -5,7 +5,7 @@ function! ale_linters#php#php#Handle(buffer, lines) abort " Matches patterns like the following: " " PHP Parse error: syntax error, unexpected ';', expecting ']' in - on line 15 - let l:pattern = '\vPHP %(Fatal|Parse) error:\s+(.+unexpected ''(.+)%(expecting.+)@<!''.*|.+) in - on line (\d+)' + let l:pattern = '\v^%(Fatal|Parse) error:\s+(.+unexpected ''(.+)%(expecting.+)@<!''.*|.+) in - on line (\d+)' let l:output = [] @@ -23,7 +23,7 @@ endfunction call ale#linter#Define('php', { \ 'name': 'php', \ 'executable': 'php', -\ 'output_stream': 'both', -\ 'command': 'php -l -d display_errors=1 --', +\ 'output_stream': 'stdout', +\ 'command': 'php -l -d error_reporting=E_ALL -d display_errors=1 --', \ 'callback': 'ale_linters#php#php#Handle', \}) |