Skip to content

Commit 9834f97

Browse files
committed
Fix an example in README.md
1 parent 0d3c175 commit 9834f97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ $unpacker = new BufferUnpacker();
363363
$unpacker = $unpacker->extendWith($dateTimeExtension);
364364

365365
$packedDate = $packer->pack(new DateTimeImmutable());
366-
$originalDate = $unpacker->reset($packed)->unpack();
366+
$originalDate = $unpacker->reset($packedDate)->unpack();
367367
```
368368

369369
If you unpack a value from an extension that is not known to the unpacker, an [Ext](src/Type/Ext.php)

0 commit comments

Comments
 (0)