-
-
Notifications
You must be signed in to change notification settings - Fork 0
EnvironmentInterface
github-actions[bot] edited this page May 2, 2026
·
1 revision
Reads process environment variables without binding callers to Composer APIs.
- Full name:
\FastForward\DevTools\Environment\EnvironmentInterface
Reads an environment variable or, when no name is provided, the current environment map.
public get(string|null $name = null, string|null $default = null): array<string,string>|string|nullParameters:
| Parameter | Type | Description |
|---|---|---|
$name |
string|null | the environment variable name, or null to read the current environment map |
$default |
string|null | the value returned when the named variable is not defined |
Return Value:
the environment map, variable value, or default fallback