We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aec2ba commit e827c34Copy full SHA for e827c34
README.md
@@ -43,7 +43,9 @@ use SandFoxMe\Bencode\Types\ListType;
43
$encoded = Bencode::encode(new ListType(new ArrayObject([1,2,3]))); // "li1ei2ei3ee"
44
45
// other objects will be converted to string if possible or generate an error if not
46
-$encoded = Bencode::encode(new class { function __toString() { return 'I am string'; } }); // "11:I am string"
+$encoded = Bencode::encode(new class {
47
+ function __toString() { return 'I am string'; }
48
+}); // "11:I am string"
49
```
50
51
### BencodeSerializable
0 commit comments