diff --git a/bears/php/PHPLintBear.py b/bears/php/PHPLintBear.py index 68658ff55d..8febcd269e 100644 --- a/bears/php/PHPLintBear.py +++ b/bears/php/PHPLintBear.py @@ -5,9 +5,10 @@ @linter(executable='php', + use_stderr=True, output_format='regex', - output_regex=r'(?PParse|Fatal) error: (?P.*) in ' - r'.* on line (?P\d+)', + output_regex=r'(?PParse|Fatal) error: (?P.*)' + r'( in .* on line (?P\d+))?', severity_map={'Parse': RESULT_SEVERITY.MAJOR, 'Fatal': RESULT_SEVERITY.MAJOR}) class PHPLintBear: