public function call(callable $callable, ...$params)
    {
        foreach ($this->settings as $key => $value) {
            $this->ini->set($key, $value);
        }

        $result = null;
        $exception = null;
        try {
            $result = $callable(...$params);
        } catch (\Throwable $e) {
            $exception = $e;
        }

        $this->ini->cleanup();

        if ($exception) {
            throw $exception;
        }

        return $result;
    }
public function call(callable $callable, ...$params)
    {
        foreach ($this->settings as $key => $value) {
            $this->ini->set($key, $value);
        }

        $result = null;
        $exception = null;
        try {
            $result = $callable(...$params);
        } catch (\Throwable $e) {
            $exception = $e;
        }

        $this->ini->cleanup();

        if ($exception) {
            throw $exception;
        }

        return $result;
    }
public function call ( callable $ callable , ... $ params ) { foreach ( $ this -> settings as $ key => $ value ) { $ this -> ini -> set ( $ key , $ value ) ; } $ result = null ; $ exception = null ; try { $ result = $ callable ( ... $ params ) ; } catch ( \ Throwable $ e ) { $ exception = $ e ; } $ this -> ini -> cleanup ( ) ; if ( $ exception ) { throw $ exception ; } return $ result ; }
Run some code using the previous provided ini settings.

@param callable $callable $the code to run
@param mixed ...$params Any parameters to pass to the callable

@return mixed The result of the callable
Run some code using the previous provided ini settings .