This commit is contained in:
nuno maduro
2026-08-07 02:12:24 +01:00
parent 5a4f124199
commit b0d1fc589d
5 changed files with 119 additions and 41 deletions
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace Pest\Plugins\Tia\Cis\Concerns;
/**
* @internal
*/
trait ReadsEnvironment
{
private function environment(string $name): ?string
{
$value = getenv($name);
if (! is_string($value)) {
return null;
}
$value = trim($value);
return $value === '' ? null : $value;
}
}