Skip to content

Commit db48ab3

Browse files
committed
docs: add parse()
1 parent 8339c66 commit db48ab3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readme.md

+3
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ $someJsonText = file_get_contents('...');
4343

4444
// You can pass args like in `json_decode`
4545
(new Comment)->decode($someJsonText, $assoc = true, $depth = 512, $options = JSON_BIGINT_AS_STRING);
46+
47+
// Or you can use static alias of decode:
48+
Comment::parse($json, true);
4649
```

0 commit comments

Comments
 (0)