Skip to content

Missing first letter of environment variable name #1

@Gremlyn

Description

@Gremlyn

Unless I'm missing something, when I create a new Environment variabled, such as:

$env = Environment::getInstance();
$env->setUsername('myuser');

and then get it back out:

$env->getUsername();

I end up losing the first letter of the var name. Changing line 59 so that it reads as follows fixes the problem.

$index = strtolower(substr($name, 3));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions