Skip to content

Commit 4814b30

Browse files
committed
add common constructor to IJsonSerializable #12
1 parent 9f01b98 commit 4814b30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Util/IJsonSerializable.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
*/
1919
interface IJsonSerializable extends JsonSerializable
2020
{
21+
/**
22+
* @param array<string, mixed> $array
23+
*/
24+
public function __construct(array $array);
25+
2126
/**
2227
* Decode a formerly JSON encoded object.
2328
* @param string $json JSON encoded object.

0 commit comments

Comments
 (0)