Skip to content

Commit f9e3ab1

Browse files
Merge pull request #2288 from bibrokhim/patch-1
Replace deprecated body property with getBody()
2 parents 6df237d + 6a12536 commit f9e3ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/tutorial-one-php.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ that messages are sent asynchronously from the server to the clients.
195195

196196
```php
197197
$callback = function (AMQPMessage $msg) {
198-
echo ' [x] Received ', $msg->body, "\n";
198+
echo ' [x] Received ', $msg->getBody(), "\n";
199199
};
200200

201201
$channel->basic_consume('hello', '', false, true, false, false, $callback);

0 commit comments

Comments
 (0)