From 50ae7b673e0bc05cf94ba8d1bd6c9fa440db239c Mon Sep 17 00:00:00 2001 From: Adrian Suter Date: Wed, 1 Jul 2020 13:46:17 +0200 Subject: [PATCH 1/3] Initialize support for php 8 --- .gitignore | 1 + .travis.yml | 4 ++++ composer.json | 4 ++-- phpunit.xml.dist | 2 +- tests/AbstractIntegrationTest.php | 4 ++-- tests/FileStreamWrapperTest.php | 2 +- tests/IntegrationCustomNamespaceTest.php | 2 +- tests/IntegrationNamespaceTest.php | 2 +- 8 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index da52ddb..f1c2f91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_Store .idea +.phpunit.result.cache composer.lock coverage docs/_site diff --git a/.travis.yml b/.travis.yml index 49b6f55..21e0969 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,10 @@ matrix: - php: 7.3 - php: 7.4 env: ANALYSIS='true' + - php: nightly + + allow_failures: + - php: nightly before_script: - if [[ "$ANALYSIS" == 'true' ]]; then composer require php-coveralls/php-coveralls:^2.2.0 ; fi diff --git a/composer.json b/composer.json index 34d361e..0440171 100644 --- a/composer.json +++ b/composer.json @@ -34,12 +34,12 @@ ] }, "require": { - "php": "^7.1", + "php": "^7.2 || ^8.0", "nikic/php-parser": "^4.4" }, "require-dev": { "phpstan/phpstan": "^0.12.25", - "phpunit/phpunit": "^7.5", + "phpunit/phpunit": "^8.5", "squizlabs/php_codesniffer": "^3.5" }, "scripts": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9a450c6..5f44a59 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,6 +1,6 @@ overrideApplied) { diff --git a/tests/FileStreamWrapperTest.php b/tests/FileStreamWrapperTest.php index 3080f74..80e9ee0 100644 --- a/tests/FileStreamWrapperTest.php +++ b/tests/FileStreamWrapperTest.php @@ -22,7 +22,7 @@ final class FileStreamWrapperTest extends TestCase */ private $tempFilePath; - protected function tearDown() + protected function tearDown(): void { // Make sure that we restore the default file stream wrapper. \stream_wrapper_restore('file'); diff --git a/tests/IntegrationCustomNamespaceTest.php b/tests/IntegrationCustomNamespaceTest.php index 828ca13..1ee4400 100644 --- a/tests/IntegrationCustomNamespaceTest.php +++ b/tests/IntegrationCustomNamespaceTest.php @@ -12,7 +12,7 @@ class IntegrationCustomNamespaceTest extends AbstractIntegrationTest { - public static function setUpBeforeClass() + public static function setUpBeforeClass(): void { require_once(__DIR__ . '/assets/PHPCustomAutoloadOverride.php'); } diff --git a/tests/IntegrationNamespaceTest.php b/tests/IntegrationNamespaceTest.php index f0ef0f0..f947496 100644 --- a/tests/IntegrationNamespaceTest.php +++ b/tests/IntegrationNamespaceTest.php @@ -12,7 +12,7 @@ class IntegrationNamespaceTest extends AbstractIntegrationTest { - public static function setUpBeforeClass() + public static function setUpBeforeClass(): void { require_once(__DIR__ . '/assets/PHPAutoloadOverride.php'); } From de0536e6c176c043aa3730ffefb23f56a30c1f60 Mon Sep 17 00:00:00 2001 From: Adrian Suter Date: Wed, 1 Jul 2020 13:47:32 +0200 Subject: [PATCH 2/3] Remove php 7.1 --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 21e0969..8fe1742 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ dist: trusty matrix: include: - - php: 7.1 - php: 7.2 - php: 7.3 - php: 7.4 From 98e7ed60e36dcc8c22aa9ffefa72684de3fc3908 Mon Sep 17 00:00:00 2001 From: Adrian Suter Date: Wed, 1 Jul 2020 14:04:05 +0200 Subject: [PATCH 3/3] Remove support for php 7.1 --- README.md | 2 +- docs/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c527fa6..4045833 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ only.** ## Requirements -- PHP 7.1 or later +- PHP 7.2 or later - Composer with PSR-4 (PSR-0 is not supported) diff --git a/docs/index.md b/docs/index.md index 1428507..06b4e4c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,7 +11,7 @@ only.** # Requirements -- PHP 7.1 or later +- PHP 7.2 or later - Composer with PSR-4 (PSR-0 is not supported)