Skip to content

Commit dc57282

Browse files
committed
bug #523 Fix accessing PantherTestCaseTrait::$webServerDir before initialization (kbond)
This PR was merged into the 2.0.x-dev branch. Discussion ---------- Fix accessing `PantherTestCaseTrait::$webServerDir` before initialization `PantherTestCaseTrait::getWebServerDir()` can access `PantherTestCaseTrait::$webServerDir` before it's initialized. I believe this was just missed in #517. Commits ------- 39efc06 fix "webServerDir must not be accessed before initialization"
2 parents b3bc87d + 39efc06 commit dc57282

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
2.0.1
5+
-----
6+
7+
* Fix accessing `PantherTestCaseTrait::$webServerDir` before initialization
8+
49
2.0.0
510
-----
611

src/PantherTestCaseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ trait PantherTestCaseTrait
3131
{
3232
public static bool $stopServerOnTeardown = true;
3333

34-
protected static ?string $webServerDir;
34+
protected static ?string $webServerDir = null;
3535

3636
protected static ?WebServerManager $webServerManager = null;
3737

0 commit comments

Comments
 (0)