Skip to content

Commit 6c7ecf5

Browse files
committed
strict comparing emoticon_set and plan id
1 parent 65186ec commit 6c7ecf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Http/Resources/TwitchEmotes/Plans.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function sortEmotes($emotes)
3030
->map(function($plans) use($emotes){
3131
$accumulator = [];
3232
foreach ($emotes as $emote){
33-
if ($emote['emoticon_set'] == $plans){
33+
if ((string) $emote['emoticon_set'] === $plans){
3434
array_push($accumulator, $emote['code']);
3535
};
3636
}

0 commit comments

Comments
 (0)