mirror of
https://github.com/dense-analysis/ale
synced 2024-12-23 14:45:29 +00:00
Fix PHP lint generic error without line number
This makes php output more specific error messages. The format is the normal one ALE expects, but on some systems ALE does not work with PHP unless the display_errors=1 option is used. Without that option php will only output a generic message without a line number like "Errors parsing index.php"
This commit is contained in:
parent
3e1486fc92
commit
2b251a2cee
@ -34,6 +34,6 @@ call ale#linter#Define('php', {
|
||||
\ 'name': 'php',
|
||||
\ 'executable': 'php',
|
||||
\ 'output_stream': 'both',
|
||||
\ 'command': 'php -l --',
|
||||
\ 'command': 'php -l -d display_errors=1 --',
|
||||
\ 'callback': 'ale_linters#php#php#Handle',
|
||||
\})
|
||||
|
Loading…
Reference in New Issue
Block a user