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

Incompatible insert() signature #119

Closed
yunosh opened this issue Jun 28, 2016 · 1 comment
Closed

Incompatible insert() signature #119

yunosh opened this issue Jun 28, 2016 · 1 comment
Labels

Comments

@yunosh
Copy link

yunosh commented Jun 28, 2016

MongoCollection::insert() takes the first parameter as reference, even though the documentation for that method explicitly mentions that this is not a ref: http://php.net/manual/en/mongocollection.insert.php
Thus it raises "Error: Cannot pass parameter 1 by reference" if passing a value to the method.

@alcaeus
Copy link
Owner

alcaeus commented Jun 29, 2016

I've previously explained this here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants