mongo-php-library icon indicating copy to clipboard operation
mongo-php-library copied to clipboard

PHPLIB-1679 Call `DocumentCodec::encode()` only on objects

Open GromNaN opened this issue 7 months ago • 3 comments

Fix PHPLIB-1679

  • Check if the input document is an object before calling DocumentCodec::encode()
  • Never validate the value returned by DocumentCodec::encode() as the type MongoDB\BSON\Document is enforced.

GromNaN avatar May 09 '25 14:05 GromNaN