Skip to content

Commit c560e14

Browse files
committed
Fix Bucket::downloadToStreamByName() call in SpecificationTests
1 parent 8fa9aab commit c560e14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/GridFS/SpecificationTests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ function download_by_nameCommand($args)
233233
{
234234
$args = $this->fixTypes($args, false);
235235
$stream = fopen('php://temp', 'w+');
236-
if(isset($args['options']['revision'])) {
237-
$this->bucket->downloadToStreamByName($args['filename'], $stream, $args['options']['revision']);
236+
if(isset($args['options'])) {
237+
$this->bucket->downloadToStreamByName($args['filename'], $stream, $args['options']);
238238
} else {
239239
$this->bucket->downloadToStreamByName($args['filename'], $stream);
240240
}

0 commit comments

Comments
 (0)