From eca66f6581709a9475823acc2b6fe75a1c53bbee Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 12 Dec 2020 18:59:50 +0100 Subject: [PATCH] Updated dependencies, adding support for PHP 8, and dropping support for PHP <7.2 --- .github/workflows/build.yml | 9 +++++---- composer.json | 6 +++--- tests/CascaderTest.php | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fd43c0..6934e10 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: strategy: matrix: php-version: - - 7.0 + - 7.2 steps: - name: Checkout @@ -55,9 +55,10 @@ jobs: strategy: matrix: php-version: - - 7.0 - - 7.1 - 7.2 + - 7.3 + - 7.4 + - 8.0 steps: - name: Checkout @@ -94,7 +95,7 @@ jobs: strategy: matrix: php-version: - - 7.0 + - 7.2 steps: - name: Checkout commit diff --git a/composer.json b/composer.json index b7192cf..78225a7 100644 --- a/composer.json +++ b/composer.json @@ -18,11 +18,11 @@ } ], "require": { - "php": "^7.0" + "php": "^7.2 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^5.7 || ^6.0", - "friendsofphp/php-cs-fixer": "^2.0" + "phpunit/phpunit": "^8.5 || ^9.4", + "friendsofphp/php-cs-fixer": "^2.7" }, "autoload": { "psr-4": { diff --git a/tests/CascaderTest.php b/tests/CascaderTest.php index 5aaf28a..70d0804 100644 --- a/tests/CascaderTest.php +++ b/tests/CascaderTest.php @@ -22,7 +22,7 @@ class CascaderTest extends TestCase */ protected $cascader; - protected function setUp() + protected function setUp(): void { $this->cascader = new Cascader(); }