Skip to content

Commit 1b8bbff

Browse files
Dragonynicklaw5
authored andcommitted
Fixed getTopClips() always failing
Without the parentheses when checking for the number of channels, the statement will always evaluate to true. That makes the method unusable.
1 parent 74757e0 commit 1b8bbff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Clips.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getTopClips($channel = null, $cursor = null, $game = null, $limi
5454
}
5555

5656
$channel = trim($channel, ', ');
57-
if ($count = count(explode(',', $channel) > 10)) {
57+
if (($count = count(explode(',', $channel)) > 10)) {
5858
throw new TwitchApiException(sprintf('Only a maximum of 10 channels can be queried. %d requested.', $count));
5959
}
6060
}

0 commit comments

Comments
 (0)