Skip to content

Commit 461cff2

Browse files
authored
Merge pull request stephpy#36 from Peekmo/fix-rules
Add quotes around rules option to allow JSON rules
2 parents 20be143 + 4d521b0 commit 461cff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/php_cs_fixer.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fun! php_cs_fixer#fix(path, dry_run)
7171

7272
if g:php_cs_fixer_version >= 2
7373
if exists('g:php_cs_fixer_rules') && g:php_cs_fixer_rules != '@PSR2'
74-
let command = command.' --rules='.g:php_cs_fixer_rules
74+
let command = command." --rules='".g:php_cs_fixer_rules."'"
7575
endif
7676
else
7777
if exists('g:php_cs_fixer_level') && g:php_cs_fixer_level != 'all'

0 commit comments

Comments
 (0)