Skip to content

Commit dccd58b

Browse files
committed
require php stan only when it is needed.
1 parent e9a0c25 commit dccd58b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ install:
4646
- if [ "$FUNCTIONAL_TESTS" = true ]; then bin/dev -b; fi
4747

4848
script:
49-
- if [ "$PHPSTAN" = true ]; then php -d memory_limit=512M bin/phpstan analyse -l 1 -c phpstan.neon pkg/amqp-ext pkg/async-event-dispatcher pkg/dbal pkg/enqueue pkg/enqueue-bundle pkg/fs pkg/gearman pkg/job-queue pkg/null pkg/pheanstalk pkg/redis pkg/simple-client pkg/sqs pkg/stomp pkg/test pkg/rdkafka; fi
49+
- if [ "$PHPSTAN" = true ]; then composer require "phpstan/phpstan:0.7.0" ; php -d memory_limit=512M bin/phpstan analyse -l 1 -c phpstan.neon pkg/amqp-ext pkg/async-event-dispatcher pkg/dbal pkg/enqueue pkg/enqueue-bundle pkg/fs pkg/gearman pkg/job-queue pkg/null pkg/pheanstalk pkg/redis pkg/simple-client pkg/sqs pkg/stomp pkg/test pkg/rdkafka; fi
5050
- if [ "$PHP_CS_FIXER" = true ]; then IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")); unset IFS; fi
5151
- if [ "$PHP_CS_FIXER" = true ]; then ./bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}"; fi
5252
- if [ "$UNIT_TESTS" = true ]; then bin/phpunit --exclude-group=functional; fi

‎composer.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"symfony/event-dispatcher": "^2.8|^3",
3636
"symfony/console": "^2.8|^3",
3737
"friendsofphp/php-cs-fixer": "^2",
38-
"empi89/php-amqp-stubs": "*@dev",
39-
"phpstan/phpstan": "^0.7.0"
38+
"empi89/php-amqp-stubs": "*@dev"
4039
},
4140
"autoload": {
4241
"files": [

0 commit comments

Comments
 (0)