Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 183cf62

Browse files
committed
Parameter $rangeBlocks may be null
1 parent 610a51d commit 183cf62

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

test/Response/SapiStreamEmitterTest.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,21 +416,22 @@ public function emitMemoryUsageProvider()
416416
}
417417

418418
/**
419-
* @param boolean $seekable Indicates if stream is seekable
420-
* @param boolean $readable Indicates if stream is readable
421-
* @param integer $sizeBlocks Number the blocks of stream data.
419+
* @param boolean $seekable Indicates if stream is seekable
420+
* @param boolean $readable Indicates if stream is readable
421+
* @param integer $sizeBlocks Number the blocks of stream data.
422422
* Block size is equal to $maxBufferLength.
423-
* @param integer $maxAllowedBlocks Maximum allowed memory usage in block units.
424-
* @param array $rangeBlocks Emitted range of data in block units [$firstBlock, $lastBlock].
425-
* @param integer $maxBufferLength Maximum buffer length used in the emitter call.
423+
* @param integer $maxAllowedBlocks Maximum allowed memory usage in block units.
424+
* @param array|null $rangeBlocks Emitted range of data in block units [$firstBlock, $lastBlock].
425+
* @param integer $maxBufferLength Maximum buffer length used in the emitter call.
426+
*
426427
* @dataProvider emitMemoryUsageProvider
427428
*/
428429
public function testEmitMemoryUsage(
429430
$seekable,
430431
$readable,
431432
$sizeBlocks,
432433
$maxAllowedBlocks,
433-
array $rangeBlocks,
434+
$rangeBlocks,
434435
$maxBufferLength
435436
) {
436437

0 commit comments

Comments
 (0)