private function compactEnv(Environment $env)
    {
        for ($envs = []; $env; $env = $env->parent) {
            $envs[] = $env;
        }

        return $envs;
    }
private function compactEnv(Environment $env)
    {
        for ($envs = []; $env; $env = $env->parent) {
            $envs[] = $env;
        }

        return $envs;
    }
private function compactEnv ( Environment $ env ) { for ( $ envs = [ ] ; $ env ; $ env = $ env -> parent ) { $ envs [ ] = $ env ; } return $ envs ; }
Convert env linked list to stack

@param \Leafo\ScssPhp\Compiler\Environment $env

@return array
Convert env linked list to stack