From db962bd775793d89d150aba2458e79d0ce018ce9 Mon Sep 17 00:00:00 2001 From: TavoNiievez Date: Sun, 17 Oct 2021 12:35:30 -0500 Subject: [PATCH] Update codebase to PHP 7.4 --- .github/workflows/main.yml | 2 +- composer.json | 2 +- readme.md | 2 +- tests/unit/Codeception/Module/AssertsTest.php | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bfbad11..8ab4cff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: - php: [7.1, 7.2, 7.3, 7.4, 8.0] + php: [7.4, 8.0, 8.1] steps: - name: Checkout code diff --git a/composer.json b/composer.json index c65a50d..5c46e29 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ ], "minimum-stability": "RC", "require": { - "php": "^7.1 || ^8.0", + "php": "^7.4 || ^8.0", "codeception/lib-asserts": "^1.13.1", "codeception/codeception": "*@dev" }, diff --git a/readme.md b/readme.md index f08a426..df23ddd 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ A Codeception module containing various assertions. ## Requirements -* `PHP 7.1` or higher. +* `PHP 7.4` or higher. ## Installation diff --git a/tests/unit/Codeception/Module/AssertsTest.php b/tests/unit/Codeception/Module/AssertsTest.php index 48230d9..21b3c76 100644 --- a/tests/unit/Codeception/Module/AssertsTest.php +++ b/tests/unit/Codeception/Module/AssertsTest.php @@ -15,8 +15,7 @@ final class AssertsTest extends TestCase { - /** @var Asserts */ - protected $module; + protected ?Asserts $module = null; public function _setUp() {