AbstractVariables::clear( string $name )

Clear an environment variable.


Parameters

$name

(string) (Required)


Return

(void)


Source

File: vendor/vlucas/phpdotenv/src/Environment/AbstractVariables.php

    public function clear($name)
    {
        if (!is_string($name)) {
            throw new InvalidArgumentException('Expected name to be a string.');
        }

        // Don't clear anything if we're immutable.
        if ($this->isImmutable()) {
            return;
        }

        $this->clearInternal($name);
    }