Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
916
stars
180
forks
source link
TypeError: `Vonage\SMS\Webhook\InboundSMS::getKeyword()`: Return value must be of type string, null returned #426
Closed
ankurk91 closed 11 months ago
The
keyword
can benull
in incoming SMS Webhook payloadExpected Behavior
The vonage SDK must allow
null
keywordCurrent Behavior
Vonage SDK throws error when
null
keyword is receivedPossible Solution
Assign empty string in
src/SMS/Webhook/InboundSMS.php
or
Steps to Reproduce (for bugs)
Context
Incoming webhook payload JSON
The
messageId
is real hereYour Environment