Files
pest/src/Plugins/Tia/Cis/Concerns/ReadsEnvironment.php
T
nuno maduro b0d1fc589d refactor
2026-08-07 02:12:24 +01:00

25 lines
373 B
PHP

<?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;
}
}