From 0bbaa12a508c71d310842744e95b78c67101af6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albrecht=20K=C3=B6hnlein?= Date: Fri, 17 Nov 2023 20:33:12 +0100 Subject: [PATCH 1/2] Revert "Make variables compatible with codeception 4" This reverts commit 4eab3b141a342afb0453c840cc4fc59798c9f81d. --- src/Mailpit.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Mailpit.php b/src/Mailpit.php index f0c3d00..c515cf7 100644 --- a/src/Mailpit.php +++ b/src/Mailpit.php @@ -13,10 +13,8 @@ class Mailpit extends Module /** * Codeception exposed variables. - * - * @var array */ - protected $config = [ + protected array $config = [ 'url', 'port', 'guzzleRequestOptions', @@ -26,10 +24,8 @@ class Mailpit extends Module /** * Codeception required variables. - * - * @var array */ - protected $requiredFields = ['url', 'port']; + protected array $requiredFields = ['url', 'port']; /** * HTTP Client to interact with Mailpit. From 68daf46bbe3dea93fe74468642d2750a5eeaacba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albrecht=20K=C3=B6hnlein?= Date: Fri, 17 Nov 2023 20:36:44 +0100 Subject: [PATCH 2/2] Set correct dependency for codeception v5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6dce887..3ad0e1d 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "require": { "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "ext-json": "*", - "codeception/codeception": "^4.0", + "codeception/codeception": "^5.0", "guzzlehttp/guzzle": "^6.1 || ^7.0" }, "require-dev": {