diff --git a/syntax_checkers/php.vim b/syntax_checkers/php.vim index de74acf1..74c91d18 100644 --- a/syntax_checkers/php.vim +++ b/syntax_checkers/php.vim @@ -89,8 +89,8 @@ endfunction function! s:GetPHPMDErrors() let makeprg = syntastic#makeprg#build({ \ 'exe': 'phpmd', - \ 'args': 'text ' . g:syntastic_phpmd_rules, - \ 'subchecker': 'phpcs' }) + \ 'post_args': 'text ' . g:syntastic_phpmd_rules, + \ 'subchecker': 'phpmd' }) let errorformat = '%E%f:%l%m' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'subtype' : 'Style' }) endfunction