Skip to content

Commit 0c293b4

Browse files
committed
Fixed README example on creating inbound SMS object
1 parent 74eb317 commit 0c293b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ create an inbound message object from a webhook:
115115

116116
```php
117117
try {
118-
$inbound = \Vonage\SMS\InboundSMS::createFromGlobals();
118+
$inbound = \Vonage\SMS\Webhook\Factory::createFromGlobals();
119119
error_log($inbound->getText());
120120
} catch (\InvalidArgumentException $e) {
121121
error_log('invalid message');

0 commit comments

Comments
 (0)