Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couchdb 2.3 is not working with lithium #1338

Open
alexanderhaensch opened this issue Feb 7, 2019 · 1 comment
Open

couchdb 2.3 is not working with lithium #1338

alexanderhaensch opened this issue Feb 7, 2019 · 1 comment
Assignees

Comments

@alexanderhaensch
Copy link
Contributor

In case of Couchdb 2.3 the method:
$this->connection->{$method}($path, $data, $options); in

return json_decode($this->connection->{$method}($path, $data, $options));
is an array instead of string..

This breaks the logic inside of the describe function.

@alexanderhaensch
Copy link
Contributor Author

alexanderhaensch commented Feb 7, 2019

possible workaround, that works with couchdb 1.x and 2.3:

                $result = $this->connection->{$method}($path, $data, $options);
                if (is_array($result)) {
                        return (object) $result;
                }
                else{
                        return json_decode($result);
                }

@nateabele nateabele self-assigned this Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants