From 83c3ec57cda422ae0288bf0c797270876124ef62 Mon Sep 17 00:00:00 2001 From: Andrei Ivchenkov Date: Sun, 16 Feb 2025 18:18:16 +0300 Subject: [PATCH 1/2] fix `MongoLog::setCallback()` return type --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index ddfde42e34..ce6a8a5912 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -7173,7 +7173,7 @@ 'MongoLog::getCallback' => ['callable'], 'MongoLog::getLevel' => ['int'], 'MongoLog::getModule' => ['int'], -'MongoLog::setCallback' => ['void', 'log_function'=>'callable'], +'MongoLog::setCallback' => ['bool', 'log_function'=>'callable'], 'MongoLog::setLevel' => ['void', 'level'=>'int'], 'MongoLog::setModule' => ['void', 'module'=>'int'], 'MongoPool::getSize' => ['int'], From 760de114866d1f9528ebd784282c3c0284f9b41c Mon Sep 17 00:00:00 2001 From: Andrei Ivchenkov Date: Sun, 16 Feb 2025 21:15:12 +0300 Subject: [PATCH 2/2] fix `MongoCollection::save()` return type --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index ce6a8a5912..e2a6e57208 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -6604,7 +6604,7 @@ 'MongoCollection::insert' => ['bool|array', 'a'=>'array', 'options='=>'array'], 'MongoCollection::parallelCollectionScan' => ['MongoCommandCursor[]', 'num_cursors'=>'int'], 'MongoCollection::remove' => ['bool|array', 'criteria='=>'array', 'options='=>'array'], -'MongoCollection::save' => ['mixed', 'a'=>'array', 'options='=>'array'], +'MongoCollection::save' => ['mixed', 'a'=>'array|object', 'options='=>'array'], 'MongoCollection::setReadPreference' => ['bool', 'read_preference'=>'string', 'tags='=>'array'], 'MongoCollection::setSlaveOkay' => ['bool', 'ok='=>'bool'], 'MongoCollection::setWriteConcern' => ['bool', 'w'=>'mixed', 'wtimeout='=>'int'],