Skip to content

Commit 652635a

Browse files
committed
PHPLIB-197: Fix typo in uploadFromStream() docs
1 parent 411147c commit 652635a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/GridFS/Bucket.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace MongoDB\GridFS;
44

5-
use MongoDB\BSON\ObjectId;
65
use MongoDB\Driver\Cursor;
76
use MongoDB\Driver\Manager;
87
use MongoDB\Driver\ReadConcern;
@@ -256,7 +255,7 @@ public function getFileDocumentForStream($stream)
256255
* Gets the file document's ID of the GridFS file associated with a stream.
257256
*
258257
* @param resource $stream GridFS stream
259-
* @return stdClass
258+
* @return mixed
260259
* @throws CorruptFileException
261260
* @throws InvalidArgumentException
262261
*/
@@ -404,7 +403,7 @@ public function rename($id, $newFilename)
404403
* @param string $filename Filename
405404
* @param resource $source Readable stream
406405
* @param array $options Stream options
407-
* @return ObjectId ID of the newly created GridFS file
406+
* @return mixed ID of the newly created GridFS file
408407
* @throws InvalidArgumentException if $source is not a stream
409408
*/
410409
public function uploadFromStream($filename, $source, array $options = [])

0 commit comments

Comments
 (0)