Add experimental .env for test purposes.

This commit is contained in:
James Cole
2023-10-30 06:17:38 +01:00
parent 6b2e3dcb2a
commit d0d7a0befc
3 changed files with 28 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ if (!function_exists('envNonEmpty')) {
function envNonEmpty(string $key, $default = null)
{
$result = env($key, $default);
if (is_string($result) && '' === $result) {
if ('' === $result) {
$result = $default;
}