@@ -72,16 +72,16 @@ public function findOne(array $filter = [], array $options = []): array|null
7272 }
7373
7474 /**
75- * @param list<array<string, mixed>> $documents
76- * @param array<string, mixed> $options
75+ * @param list<TDocument> $documents
76+ * @param array<string, mixed> $options
7777 */
7878 public function insertMany (array $ documents , array $ options = []): InsertManyResult
7979 {
8080 return $ this ->client ->run (new Operation \InsertMany ($ this ->databaseName , $ this ->collectionName , $ documents , $ options ));
8181 }
8282
8383 /**
84- * @param array<string, mixed> $document
84+ * @param TDocument $document
8585 * @param array<string, mixed> $options
8686 */
8787 public function insertOne (array $ document , array $ options = []): InsertOneResult
@@ -91,7 +91,7 @@ public function insertOne(array $document, array $options = []): InsertOneResult
9191
9292 /**
9393 * @param array<string, mixed> $filter
94- * @param array<string, mixed> $replacement
94+ * @param TDocument $replacement
9595 * @param array<string, mixed> $options
9696 */
9797 public function replaceOne (array $ filter , array $ replacement , array $ options = []): UpdateResult
@@ -161,7 +161,7 @@ public function findOneAndDelete(array $filter, array $options = []): array|null
161161
162162 /**
163163 * @param array<string, mixed> $filter
164- * @param array<string, mixed> $replacement
164+ * @param TDocument $replacement
165165 * @param array<string, mixed> $options
166166 *
167167 * @return TDocument|null
0 commit comments