diff options
author | Adriaan Zonnenberg <adriaanzon@users.noreply.github.com> | 2017-05-09 18:34:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-09 18:34:38 +0200 |
commit | 4e5a848d953c449a7655fb4e11e4c0cdf6254cac (patch) | |
tree | 97d78e3a421d833a0d15c6ebcc885c3251b40fed /ale_linters | |
parent | 6ea00af6895e111320a2047f43f94792a46b6cea (diff) | |
parent | d7bdaeeab0506a526f47b8388a9fa7597d7232c0 (diff) | |
download | ale-4e5a848d953c449a7655fb4e11e4c0cdf6254cac.zip |
Merge pull request #533 from pbogut/add_php7_compatibility
Add PHP 7 compatibility
Diffstat (limited to 'ale_linters')
-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', \}) |