resolveNestedVariables example



        $name  = trim($name);
        $value = trim($value);

        // Sanitize the name         $name = preg_replace('/^export[ \t]++(\S+)/', '$1', $name);
        $name = str_replace(['\'', '"'], '', $name);

        // Sanitize the value         $value = $this->sanitizeValue($value);
        $value = $this->resolveNestedVariables($value);

        return [$name$value];
    }

    /** * Strips quotes from the environment variable value. * * This was borrowed from the excellent phpdotenv with very few changes. * https://github.com/vlucas/phpdotenv * * @throws InvalidArgumentException */
Home | Imprint | This part of the site doesn't use cookies.