summaryrefslogtreecommitdiff
path: root/ale_linters/php
diff options
context:
space:
mode:
authorstill-dreaming-1 <still-dreaming-1@users.noreply.github.com>2016-12-28 11:10:47 -0700
committerGitHub <noreply@github.com>2016-12-28 11:10:47 -0700
commit2b251a2cee045d42a311df84ff2a27fd53a7d9f1 (patch)
tree1a5de8fb291ca2aa419c5bf14260dcf714d42062 /ale_linters/php
parent3e1486fc927d6641ea8d21cc31c5870cb7c75ce7 (diff)
downloadale-2b251a2cee045d42a311df84ff2a27fd53a7d9f1.zip
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"
Diffstat (limited to 'ale_linters/php')
-rw-r--r--ale_linters/php/php.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/php/php.vim b/ale_linters/php/php.vim
index cbbd088d..573036d8 100644
--- a/ale_linters/php/php.vim
+++ b/ale_linters/php/php.vim
@@ -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',
\})