Skip to content

Commit 13dd9be

Browse files
committed
Fix wording, add a link to the msgpack article in README.md
1 parent 9834f97 commit 13dd9be

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ This can be done in several ways, depending on your use case. Let's take a look
296296

297297
#### Type objects
298298

299-
If you need to *serialize* a specific value into one of the basic MessagePack types, it is recommended
300-
to use an instance of a class that implements the [CanBePacked](src/CanBePacked.php) interface. A good
301-
example of such a class is the [Map](src/Type/Map.php) type class that comes with the library. This type
302-
is useful when you want to explicitly specify that a given PHP array should be packed as a MessagePack
303-
map without triggering an automatic type detection routine:
299+
If you need to *serialize* an instance of one of your classes, the best way to do it is to implement
300+
the [CanBePacked](src/CanBePacked.php) interface in the class. A good example of such a class is
301+
the [Map](src/Type/Map.php) type class that comes with the library. This type is useful when you want
302+
to explicitly specify that a given PHP array should be packed as a MessagePack map without triggering
303+
an automatic type detection routine:
304304

305305
```php
306306
use MessagePack\Packer;
@@ -382,6 +382,9 @@ assert($ext->data === "\xaa");
382382

383383
> *More extension examples can be found in the [examples/MessagePack](examples/MessagePack) directory.*
384384
385+
> *To learn more about how extension types can be useful, check out this
386+
> [article](https://dev.to/tarantool/advanced-messagepack-capabilities-4735).*
387+
385388

386389
## Exceptions
387390

0 commit comments

Comments
 (0)