Skip to content

Commit ffef809

Browse files
authored
Add null check for appId getter on Number model (#443)
1 parent 6c22785 commit ffef809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Numbers/Number.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,6 @@ public function setAppId(string $appId): self
296296
public function getAppId(): ?string
297297
{
298298
// These should never be different, but might not both be set
299-
return $this->data['voiceCallbackValue'] ?? $this->data['messagesCallbackValue'];
299+
return $this->data['voiceCallbackValue'] ?? $this->data['messagesCallbackValue'] ?? null;
300300
}
301301
}

0 commit comments

Comments
 (0)