diff --git a/.gitignore b/.gitignore index 87904ecb..0b92d9cf 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /laminas-mkdoc-theme/ /phpunit.xml /vendor/ +.phpunit.result.cache diff --git a/.travis.yml b/.travis.yml index d1f2636a..a3e3ef11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,47 +19,36 @@ services: matrix: fast_finish: true include: - - php: 5.6 - env: - - DEPS=lowest - - php: 5.6 - env: - - DEPS=latest - - php: 7 - env: - - DEPS=lowest - - php: 7 - env: - - DEPS=latest - - php: 7.1 - env: - - DEPS=lowest - - php: 7.1 + - php: 7.3 env: - DEPS=latest - CS_CHECK=true - TEST_COVERAGE=true - - php: 7.2 + - php: 7.3 env: - DEPS=lowest - - php: 7.2 - env: - - DEPS=latest - - php: 7.3 + - php: 7.4 env: - DEPS=lowest - - php: 7.3 + - php: 7.4 env: - DEPS=latest - - php: 7.4 + - php: nightly + env: + - DEPS=lowest + - COMPOSER_ARGS="--no-interaction --ignore-platform-reqs" + - SKIP_MONGODB=true # ext-mongodb does not build on php8 yet (https://github.com/mongodb/mongo-php-driver/issues/1161) + - php: nightly env: - DEPS=latest + - COMPOSER_ARGS="--no-interaction --ignore-platform-reqs" + - SKIP_MONGODB=true # ext-mongodb does not build on php8 yet (https://github.com/mongodb/mongo-php-driver/issues/1161) before_install: - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi - pecl channel-update pecl.php.net - - pecl -q upgrade mongodb - - $(php -m | grep -q mongodb) || echo "extension=mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini + - if [[ $SKIP_MONGODB != 'true' ]]; then pecl -q upgrade mongodb ; fi + - if [[ $SKIP_MONGODB != 'true' ]]; then $(php -m | grep -q mongodb) || echo "extension=mongodb.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; fi - psql -c 'create database laminas_session_test;' -U postgres - mysql -e 'CREATE DATABASE laminas_session_test;' diff --git a/CHANGELOG.md b/CHANGELOG.md index 5eb5983b..a999b598 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file, in reverse ### Added -- Nothing. +- [#35](https://github.com/laminas/laminas-session/pull/35) Adds PHP 8.0 support ### Changed @@ -14,11 +14,23 @@ All notable changes to this project will be documented in this file, in reverse ### Deprecated -- Nothing. +- [#35](https://github.com/laminas/laminas-session/pull/35) Marks some methods in `StandardConfig` and `SessionConfig` as deprecated as the functionality behind these methods was dropped in PHP 7.1 + - `StandardConfig::setEntropyFile` + - `StandardConfig::getEntropyFile` + - `StandardConfig::setEntropyLength` + - `StandardConfig::getEntropyLength` + - `StandardConfig::setHashFunction` + - `StandardConfig::getHashFunction` + - `StandardConfig::setHashBitsPerCharacter` + - `StandardConfig::getHashBitsPerCharacter` + - `SessionConfig::setHashFunction` + - `SessionConfig::setHashBitsPerCharacter` + +- [#35](https://github.com/laminas/laminas-session/pull/35) Marks the `AbstractValidatorChain`, `ValidatorChainTrait` and `AbstractValidatorChainEM3` as deprecated as they can be replaced by using the `ValidatorChain` instead. ### Removed -- Nothing. +- [#35](https://github.com/laminas/laminas-session/pull/35) Removed compatibility with laminas-eventmanager v2 ### Fixed diff --git a/composer.json b/composer.json index 0798fb17..fbf62711 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ } }, "require": { - "php": "^5.6 || ^7.0", - "laminas/laminas-eventmanager": "^2.6.2 || ^3.0", + "php": "^7.3 || ~8.0.0", + "laminas/laminas-eventmanager": "^3.0", "laminas/laminas-stdlib": "^3.2.1", "laminas/laminas-zendframework-bridge": "^1.0" }, @@ -36,11 +36,12 @@ "laminas/laminas-coding-standard": "~1.0.0", "laminas/laminas-db": "^2.7", "laminas/laminas-http": "^2.5.4", - "laminas/laminas-servicemanager": "^2.7.5 || ^3.0.3", + "laminas/laminas-servicemanager": "^3.0.3", "laminas/laminas-validator": "^2.6", "mongodb/mongodb": "^1.0.1", "php-mock/php-mock-phpunit": "^1.1.2 || ^2.0", - "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20" + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.3" }, "suggest": { "laminas/laminas-cache": "Laminas\\Cache component", @@ -56,9 +57,6 @@ } }, "autoload-dev": { - "files": [ - "test/autoload.php" - ], "psr-4": { "LaminasTest\\Session\\": "test/" } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7f93db01..b468d5a0 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -15,18 +15,17 @@ - - + + ./src - - src/compatibility/autoload.php - src/Validator/AbstractValidatorChainEM2.php - - - + + + src/compatibility/autoload.php + + - +