From 1bde49b3c46ff8460310527636a41de63816f7f7 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Wed, 22 Sep 2021 11:00:41 +0200 Subject: [PATCH] types fix --- src/TestSuite.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TestSuite.php b/src/TestSuite.php index d91395d3..d25dfe23 100644 --- a/src/TestSuite.php +++ b/src/TestSuite.php @@ -100,6 +100,7 @@ final class TestSuite $this->rootPath = (string) realpath($rootPath); $this->testPath = $testPath; + $this->workingEnv = 'local'; } /** @@ -109,7 +110,7 @@ final class TestSuite { if (is_string($rootPath) && is_string($testPath)) { self::$instance = new TestSuite($rootPath, $testPath); - self::$instance->workingEnv = $workingEnv; + self::$instance->workingEnv = $workingEnv ?? 'local'; foreach (Plugin::$callables as $callable) { $callable();