diff --git a/src/Platform/Platform.php b/src/Platform/Platform.php index 31d41d9..7b90595 100644 --- a/src/Platform/Platform.php +++ b/src/Platform/Platform.php @@ -344,18 +344,4 @@ public function setWorker(Server $worker): self return $this; } - - /** - * Get env - * - * Method for querying env parameters. If $key is not found $default value will be returned. - * - * @param string $key - * @param string|null $default - * @return mixed - */ - public function getEnv(string $key, ?string $default = null): mixed - { - return $_SERVER[$key] ?? $default; - } } diff --git a/tests/unit/GetEnvTest.php b/tests/unit/GetEnvTest.php deleted file mode 100644 index 73b9c34..0000000 --- a/tests/unit/GetEnvTest.php +++ /dev/null @@ -1,17 +0,0 @@ -assertSame($_SERVER['argc'] ?? null, $platform->getEnv('argc')); - $this->assertSame('fallback', $platform->getEnv('UTOPIA_PLATFORM_MISSING_ENV', 'fallback')); - $this->assertNull($platform->getEnv('UTOPIA_PLATFORM_MISSING_ENV')); - } -}