Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Hotfix: PHP 7.4 compatibility #56

Merged
merged 7 commits into from
Dec 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.phpunit.result.cache
/clover.xml
/coveralls-upload.json
/docs/html/
Expand Down
31 changes: 19 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
sudo: false

language: php

branches:
except:
- /^release-\d+\.\d+\.\d+.*$/
- /^ghgfk-.*$/

cache:
directories:
- $HOME/.composer/cache
Expand All @@ -17,13 +10,15 @@ env:
- COVERAGE_DEPS="php-coveralls/php-coveralls"

matrix:
fast_finish: true
include:
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- TEST_COVERAGE=true
- CHECK_CS=true
- php: 7.1
Expand All @@ -38,17 +33,27 @@ matrix:
- php: 7.2
env:
- DEPS=latest

notifications:
email: false
- php: 7.3
env:
- DEPS=locked
- php: 7.3
env:
- DEPS=latest
- php: 7.4
env:
- DEPS=locked
- php: 7.4
env:
- DEPS=latest

before_install:
- if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi

install:
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update $COMPOSER_ARGS --prefer-lowest --prefer-stable ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- stty cols 120 && composer show

Expand All @@ -59,3 +64,5 @@ script:
after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi

notifications:
email: false
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file, in reverse

### Added

- Nothing.
- [#56](https://github.com/zendframework/zend-di/pull/56) adds support for PHP 7.3 and 7.4.

### Changed

Expand All @@ -22,7 +22,7 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#56](https://github.com/zendframework/zend-di/pull/56) fixes PHP 7.4 compatibility.

## 3.1.1 - 2019-01-15

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
"require-dev": {
"container-interop/container-interop": "^1.2.0",
"mikey179/vfsstream": "^1.6.7",
"phpunit/phpunit": "^7.3",
"phpunit/phpunit": "^7.5.18 || ^8.5",
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-servicemanager": "^3.0"
},
"conflict": {
"phpspec/prophecy": "<1.9.0",
"zendframework/zend-servicemanager-di": "*"
},
"suggest": {
Expand Down
Loading