Skip to content

Commit 068ee46

Browse files
authored
Merge pull request #56 from utopia-php/fix-remove-getenv
fix: remove getEnv method from Platform
2 parents 16d385e + 8683343 commit 068ee46

2 files changed

Lines changed: 0 additions & 31 deletions

File tree

src/Platform/Platform.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -344,18 +344,4 @@ public function setWorker(Server $worker): self
344344

345345
return $this;
346346
}
347-
348-
/**
349-
* Get env
350-
*
351-
* Method for querying env parameters. If $key is not found $default value will be returned.
352-
*
353-
* @param string $key
354-
* @param string|null $default
355-
* @return mixed
356-
*/
357-
public function getEnv(string $key, ?string $default = null): mixed
358-
{
359-
return $_SERVER[$key] ?? $default;
360-
}
361347
}

tests/unit/GetEnvTest.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)