From 78d1f5f5dfdc3a362b3ecb304ffb07e9bb10a65c Mon Sep 17 00:00:00 2001 From: Stephen Rathbone Date: Wed, 13 Dec 2017 21:23:18 +0000 Subject: [PATCH] Fix PHP linter to support PHP 7.2 lint output --- ale_linters/php/php.vim | 6 ++++-- test/handler/test_php_handler.vader | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ale_linters/php/php.vim b/ale_linters/php/php.vim index b263c5f..6470383 100644 --- a/ale_linters/php/php.vim +++ b/ale_linters/php/php.vim @@ -4,12 +4,14 @@ function! ale_linters#php#php#Handle(buffer, lines) abort " Matches patterns like the following: " - " Parse error: syntax error, unexpected ';', expecting ']' in - on line 15 - let l:pattern = '\v^%(Fatal|Parse) error:\s+(.+unexpected ''(.+)%(expecting.+)@= - Parse error: syntax error, unexpected ';', expecting ']' in Standard input code on line 15 + let l:pattern = '\v^%(Fatal|Parse) error:\s+(.+unexpected ''(.+)%(expecting.+)@