for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Composer\Config;
final class Env
{
public static function get(string $key, $default = null): callable
if (count(func_get_args()) === 2) {
return static fn () => $_ENV[$key] ?? $default;
}
return static fn () => $_ENV[$key];