summaryrefslogtreecommitdiff
path: root/ale_linters/php
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-05-07 19:38:32 +0100
committerw0rp <devw0rp@gmail.com>2019-05-07 19:38:38 +0100
commit5f64f8dc5799d9ad93544d24fb780428cd07dbbe (patch)
tree2039386cfbaa537d8d7ac9664f6f3efdf0248ac4 /ale_linters/php
parentc10da0e390b37ae6a739769dffb3b8dcf36a81d0 (diff)
downloadale-5f64f8dc5799d9ad93544d24fb780428cd07dbbe.zip
Escape phpstan arguments, and update documentation
Diffstat (limited to 'ale_linters/php')
-rw-r--r--ale_linters/php/phpstan.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/php/phpstan.vim b/ale_linters/php/phpstan.vim
index ca12211c..b621f855 100644
--- a/ale_linters/php/phpstan.vim
+++ b/ale_linters/php/phpstan.vim
@@ -9,7 +9,7 @@ let g:ale_php_phpstan_configuration = get(g:, 'ale_php_phpstan_configuration', '
function! ale_linters#php#phpstan#GetCommand(buffer, version) abort
let l:configuration = ale#Var(a:buffer, 'php_phpstan_configuration')
let l:configuration_option = !empty(l:configuration)
- \ ? ' -c ' . l:configuration
+ \ ? ' -c ' . ale#Escape(l:configuration)
\ : ''
let l:level = ale#Var(a:buffer, 'php_phpstan_level')
@@ -21,7 +21,7 @@ function! ale_linters#php#phpstan#GetCommand(buffer, version) abort
endif
let l:level_option = !empty(l:level)
- \ ? ' -l ' . l:level
+ \ ? ' -l ' . ale#Escape(l:level)
\ : ''
let l:error_format = ale#semver#GTE(a:version, [0, 10, 3])