Skip to content

RuntimeEnvironment

github-actions edited this page Apr 28, 2026 · 1 revision

Resolves common runtime-environment flags used by DevTools integrations.


Methods

__construct

public __construct(\FastForward\DevTools\Environment\EnvironmentInterface $environment): mixed

Parameters:

Parameter Type Description
$environment \FastForward\DevTools\Environment\EnvironmentInterface reads raw process environment variables

isEnabled

Returns whether a truthy environment flag is enabled.

public isEnabled(string $name): bool

Parameters:

Parameter Type Description
$name string the environment variable name

Return Value:

true when the environment variable is enabled


isGithubActions

Returns whether the current process runs in GitHub Actions.

public isGithubActions(): bool

isCi

Returns whether the current process runs in a CI environment.

public isCi(): bool

isComposerTestRun

Returns whether the Composer test suite runtime flag is enabled.

public isComposerTestRun(): bool

Clone this wiki locally