src/Config.php
public function getEnv(string $param): string
    {
        if (preg_match_all('#\{ENV\(([A-Za-z0-9_]+)(?:(,?)([^}]*))\)\}#', $param, $matches)) {
            if (4 !== count($matches)) {
                return $param;
            }

            for ($i = 0; $i < count($matches[0]); ++$i) {
                $param = $this->parseEnv($param, $matches, $i);
            }

            return $param;
        }

        return $param;
    }
public function getEnv(string $param): string
    {
        if (preg_match_all('#\{ENV\(([A-Za-z0-9_]+)(?:(,?)([^}]*))\)\}#', $param, $matches)) {
            if (4 !== count($matches)) {
                return $param;
            }

            for ($i = 0; $i < count($matches[0]); ++$i) {
                $param = $this->parseEnv($param, $matches, $i);
            }

            return $param;
        }

        return $param;
    }
public function getEnv ( string $ param ) : string { if ( preg_match_all ( '#\{ENV\(([A-Za-z0-9_]+)(?:(,?)([^}]*))\)\}#' , $ param , $ matches ) ) { if ( 4 !== count ( $ matches ) ) { return $ param ; } for ( $ i = 0 ; $ i < count ( $ matches [ 0 ] ) ; ++ $ i ) { $ param = $ this -> parseEnv ( $ param , $ matches , $ i ) ; } return $ param ; } return $ param ; }
Parse env param.
Parse env param .