Skip to content

Instantly share code, notes, and snippets.

@webdevilopers
Created March 21, 2017 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdevilopers/4769cb8c56f6fdec5dc92e7ea25869c4 to your computer and use it in GitHub Desktop.
Save webdevilopers/4769cb8c56f6fdec5dc92e7ea25869c4 to your computer and use it in GitHub Desktop.
Cannot pass parameter 1 by reference with MongoCollection
#$collection->insert(['id' => 1]); // Cannot pass parameter 1 by reference
$a = ['id' => 1];
$collection->insert($a);
@webdevilopers
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment