Skip to content

Commit 01ec1f1

Browse files
committed
Resolve failure with it_should_create_a_follow_without_notifications
1 parent 014dd65 commit 01ec1f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NewTwitchApi/Resources/UsersApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function createUserFollow(string $bearer, string $fromId, string $toId, b
114114

115115
$queryParamsMap[] = ['key' => 'to_id', 'value' => $toId];
116116

117-
if ($notifications !== null) {
117+
if (!is_null($notifications)) {
118118
$queryParamsMap[] = ['key' => 'allow_notifications', 'value' => $notifications];
119119
}
120120

0 commit comments

Comments
 (0)