Skip to content

Commit 94e6d10

Browse files
kubawerloskeradus
authored andcommitted
Use composer-require-checker (#9)
1 parent 07ca7e2 commit 94e6d10

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Diff for: .composer-require-checker.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"symbol-whitelist": [
3+
"PhpCsFixer\\PhpunitConstraintIsIdenticalString\\Constraint\\IsIdenticalString",
4+
5+
"null", "true", "false",
6+
"static", "self", "parent",
7+
"array", "string", "int", "float", "bool", "iterable", "callable", "void"
8+
]
9+
}

Diff for: .travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ before_install:
3434
- composer global show -ND 2>&1 | grep "hirak/prestissimo" || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
3535

3636
install:
37-
- composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
37+
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
3838
- composer info -D | sort
3939

4040
script:
@@ -46,10 +46,12 @@ jobs:
4646
stage: Static code analysis
4747
php: 7.3
4848
install:
49+
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS
4950
- travis_retry composer update -d dev-tools $DEFAULT_COMPOSER_FLAGS
5051
- composer info -d dev-tools -D | sort
5152
script:
5253
- composer validate --strict || travis_terminate 1
5354
- composer normalize -d ./dev-tools ./../composer.json --dry-run || travis_terminate 1
55+
- dev-tools/vendor/bin/composer-require-checker check composer.json --config-file=.composer-require-checker.json || travis_terminate 1
5456
- dev-tools/vendor/bin/phpmd src,tests text phpmd.xml || travis_terminate 1
5557
- dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v || travis_terminate 1

0 commit comments

Comments
 (0)