Skip to content

Commit

Permalink
Add getOutputStreams return type hint for FilterChains
Browse files Browse the repository at this point in the history
  • Loading branch information
javer committed May 25, 2021
1 parent 4a357f7 commit 545c507
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Filter/Chain/AudioFilterChainInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/**
* @method AudioStreamInterface getOutputStream(int $number = 0)
* @method AudioStreamInterface[] getOutputStreams()
*/
interface AudioFilterChainInterface extends FilterChainInterface
{
Expand Down
1 change: 1 addition & 0 deletions src/Filter/Chain/VideoFilterChainInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/**
* @method VideoStreamInterface getOutputStream(int $number = 0)
* @method VideoStreamInterface[] getOutputStreams()
*/
interface VideoFilterChainInterface extends FilterChainInterface
{
Expand Down
6 changes: 0 additions & 6 deletions tests/Command/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,6 @@ public function testMixAndNormalizeAudioTracks(): void
->split(2)
->getOutputStreams();

assert($mixStream instanceof AudioStreamInterface);
assert($audioStream instanceof AudioStreamInterface);

$mixAudioStreams[] = $mixStream;

$outputFile->addAudioStream($audioStream)
Expand Down Expand Up @@ -520,9 +517,6 @@ public function testMoveStreamToPosition(): void
->split(2)
->getOutputStreams();

assert($mixStream instanceof AudioStreamInterface);
assert($audioStream instanceof AudioStreamInterface);

$mixAudioStreams[] = $mixStream;

$outputFile->addAudioStream($audioStream)
Expand Down

0 comments on commit 545c507

Please sign in to comment.