From 39efc06a5958746844a523fb31f6cc5955b3c9e4 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Wed, 1 Dec 2021 15:38:40 -0500 Subject: [PATCH] fix "webServerDir must not be accessed before initialization" --- CHANGELOG.md | 5 +++++ src/PantherTestCaseTrait.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07b1084c..e0039104 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +2.0.1 +----- + +* Fix accessing `PantherTestCaseTrait::$webServerDir` before initialization + 2.0.0 ----- diff --git a/src/PantherTestCaseTrait.php b/src/PantherTestCaseTrait.php index e1e4a5c3..7973f599 100644 --- a/src/PantherTestCaseTrait.php +++ b/src/PantherTestCaseTrait.php @@ -31,7 +31,7 @@ trait PantherTestCaseTrait { public static bool $stopServerOnTeardown = true; - protected static ?string $webServerDir; + protected static ?string $webServerDir = null; protected static ?WebServerManager $webServerManager = null;