Skip to content

Commit

Permalink
Require PHP 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Dec 28, 2016
1 parent a26e961 commit 67f583e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .travis.yml
Expand Up @@ -3,25 +3,23 @@ language: php
sudo: false

php:
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

matrix:
include:
- php: 5.5
- php: 7.0
env: dependencies=lowest

before_script:
- if [[ $(phpenv version-name) == '5.6' ]]; then composer require satooshi/php-coveralls:dev-master -n ; fi
- if [[ $(phpenv version-name) != '5.6' ]]; then composer install -n ; fi
- if [[ $(phpenv version-name) == '7.1' ]]; then composer require satooshi/php-coveralls:dev-master -n ; fi
- if [[ $(phpenv version-name) != '7.1' ]]; then composer install -n ; fi
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi;

script:
- if [[ $(phpenv version-name) == '5.6' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $(phpenv version-name) != '5.6' ]]; then vendor/bin/phpunit ; fi
- if [[ $(phpenv version-name) == '7.1' ]]; then vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $(phpenv version-name) != '7.1' ]]; then vendor/bin/phpunit ; fi

after_script:
- if [[ $(phpenv version-name) == '5.6' ]]; then php vendor/bin/coveralls -v ; fi
- if [[ $(phpenv version-name) == '7.1' ]]; then php vendor/bin/coveralls -v ; fi
1 change: 1 addition & 0 deletions change-log.md
Expand Up @@ -4,6 +4,7 @@

BC breaks:

- PHP 7 or greater is required
- The deprecated `DI\link()` helper was removed, used `DI\get()` instead

## 5.4
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -23,13 +23,13 @@
"test": "phpunit"
},
"require": {
"php": ">=5.5.0",
"php": ">=7.0.0",
"container-interop/container-interop": "~1.0",
"php-di/invoker": "^1.3.2",
"php-di/phpdoc-reader": "^2.0.1"
},
"require-dev": {
"phpunit/phpunit": "~4.5",
"phpunit/phpunit": "~5.0",
"mnapoli/phpunit-easymock": "~0.2.0",
"doctrine/cache": "~1.4",
"doctrine/annotations": "~1.2",
Expand Down
4 changes: 4 additions & 0 deletions doc/migration/6.0.md
Expand Up @@ -9,6 +9,10 @@ PHP-DI 6.0 is a new major version that comes with backward compatibility breaks.

This guide will help you migrate from a 5.x version to 6.0. It will only explain backward compatibility breaks, it will not present the new features (read the release notes or the blog post for that).

## PHP version

PHP-DI requires PHP 7 or greater, it is no longer compatible with PHP 5.

## Definitions

### DI\link()
Expand Down

0 comments on commit 67f583e

Please sign in to comment.