Skip to content

Commit

Permalink
Add null check for appId getter on Number model (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickskrauch authored Oct 13, 2023
1 parent 6c22785 commit ffef809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Numbers/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,6 @@ public function setAppId(string $appId): self
public function getAppId(): ?string
{
// These should never be different, but might not both be set
return $this->data['voiceCallbackValue'] ?? $this->data['messagesCallbackValue'];
return $this->data['voiceCallbackValue'] ?? $this->data['messagesCallbackValue'] ?? null;
}
}

0 comments on commit ffef809

Please sign in to comment.