Skip to content

Commit bca0d88

Browse files
committed
Fix README examples
1 parent d9e3d8c commit bca0d88

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ $unpacker->unpackStr(); // PHP UTF-8 string
244244
$unpacker->unpackBin(); // PHP binary string
245245
$unpacker->unpackArray(); // PHP sequential array
246246
$unpacker->unpackMap(); // PHP associative array
247-
$unpacker->unpackExt(); // PHP MessagePack\Ext class
247+
$unpacker->unpackExt(); // PHP MessagePack\Type\Ext object
248248
```
249249

250250

@@ -370,8 +370,8 @@ If you unpack a value from an extension that is not known to the unpacker, an [E
370370
object will be returned. It can also be used to pack an extension:
371371

372372
```php
373-
use MessagePack\Ext;
374373
use MessagePack\MessagePack;
374+
use MessagePack\Type\Ext;
375375

376376
$packed = MessagePack::pack(new Ext(42, "\xaa"));
377377
$ext = MessagePack::unpack($packed);

0 commit comments

Comments
 (0)