Skip to content

Commit a8342f6

Browse files
committed
Fixed one more issue with Traversable
1 parent a937dac commit a8342f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AutoReps.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use FFMpeg\Format\VideoInterface;
1717
use Streaming\Exception\InvalidArgumentException;
1818
use Streaming\Exception\RuntimeException;
19+
use Traversable;
1920

2021

2122
class AutoReps implements \IteratorAggregate
@@ -231,7 +232,7 @@ public function getKBitrate(): array
231232
* Retrieve an external iterator reps
232233
* @return \Traversable An instance of an object implementing <b>Iterator</b> or <b>Traversable</b>
233234
*/
234-
public function getIterator()
235+
public function getIterator(): Traversable
235236
{
236237
$reps = $this->getCalculatedReps();
237238
array_push($reps, $this->getOriginalRep());

0 commit comments

Comments
 (0)