Skip to content

Commit

Permalink
Added platform workaround for php-cs-fixer tool
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Dec 20, 2018
1 parent 8dfbb97 commit fb08e42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -9,7 +9,7 @@ lint:
find . \( -name '*.xml' -or -name '*.xlf' \) \
-not -path './vendor/*' -not -path './vendor-bin/*' -not -path './src/Resources/public/vendor/*' \
| xargs -I'{}' xmllint --encode UTF-8 --output '{}' --format '{}'
vendor/bin/php-cs-fixer fix --verbose
export PHP_CS_FIXER_IGNORE_ENV=1 && php vendor/bin/php-cs-fixer fix --verbose
git diff --exit-code

checkdeps:
Expand Down
7 changes: 6 additions & 1 deletion vendor-bin/csfixer/composer.json
@@ -1,5 +1,10 @@
{
"require": {
"friendsofphp/php-cs-fixer": "^2.10"
"friendsofphp/php-cs-fixer": "^2.13"
},
"config": {
"platform":{
"php": "7.2"
}
}
}

0 comments on commit fb08e42

Please sign in to comment.