protected function getenv($varname): ?string
    {
        $value = getenv($varname, true);

        if ($value === false) {
            $value = getenv($varname);
        }

        return $value !== false ? $value : null;
    }
protected function getenv($varname): ?string
    {
        $value = getenv($varname, true);

        if ($value === false) {
            $value = getenv($varname);
        }

        return $value !== false ? $value : null;
    }
protected function getenv ( $ varname ) : ? string { $ value = getenv ( $ varname , true ) ; if ( $ value === false ) { $ value = getenv ( $ varname ) ; } return $ value !== false ? $ value : null ; }
Calls getenv for local and system env vars

@param string $varname
@return string|null
Calls getenv for local and system env vars