Skip to content

Commit c098cb7

Browse files
committed
Added check g:php_cs_fixer_path file exists
1 parent 910bed2 commit c098cb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/php-cs-fixer.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ if exists('g:php_cs_fixer_config')
2525
let g:php_cs_fixer_command = g:php_cs_fixer_command.' --config='.g:php_cs_fixer_config
2626
endif
2727

28+
if !filereadable(g:php_cs_fixer_path)
29+
echoerr(g:php_cs_fixer_path.' is not found')
30+
endif
2831

2932
fun! PhpCsFixerFix(path, dry_run)
3033
let command = g:php_cs_fixer_command.' '.a:path

0 commit comments

Comments
 (0)