File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace MongoDB \GridFS ;
4
4
5
- use MongoDB \BSON \ObjectId ;
6
5
use MongoDB \Driver \Cursor ;
7
6
use MongoDB \Driver \Manager ;
8
7
use MongoDB \Driver \ReadConcern ;
@@ -256,7 +255,7 @@ public function getFileDocumentForStream($stream)
256
255
* Gets the file document's ID of the GridFS file associated with a stream.
257
256
*
258
257
* @param resource $stream GridFS stream
259
- * @return stdClass
258
+ * @return mixed
260
259
* @throws CorruptFileException
261
260
* @throws InvalidArgumentException
262
261
*/
@@ -404,7 +403,7 @@ public function rename($id, $newFilename)
404
403
* @param string $filename Filename
405
404
* @param resource $source Readable stream
406
405
* @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
408
407
* @throws InvalidArgumentException if $source is not a stream
409
408
*/
410
409
public function uploadFromStream ($ filename , $ source , array $ options = [])
You can’t perform that action at this time.
0 commit comments