Skip to content

Commit

Permalink
Merge pull request #30 from gerardroche/master
Browse files Browse the repository at this point in the history
Fix #29 Errors not showing up with PHP 7.2
  • Loading branch information
braver authored Dec 13, 2017
2 parents 41e55ec + 9e84d2e commit 5d087e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PHP(Linter):
syntax = ('php', 'html')
regex = (
r'^(?:Parse|Fatal) (?P<error>error):(\s*(?P<type>parse|syntax) error,?)?\s*'
r'(?P<message>(?:unexpected \'(?P<near>[^\']+)\')?.*) in - on line (?P<line>\d+)'
r'(?P<message>(?:unexpected \'(?P<near>[^\']+)\')?.*) (?:in - )?on line (?P<line>\d+)'
)
executable = 'php'
error_stream = util.STREAM_STDOUT
Expand Down

0 comments on commit 5d087e3

Please sign in to comment.