Skip to content

Commit

Permalink
add common constructor to IJsonSerializable #12
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Jul 30, 2024
1 parent 9f01b98 commit 4814b30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Util/IJsonSerializable.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
*/
interface IJsonSerializable extends JsonSerializable
{
/**
* @param array<string, mixed> $array
*/
public function __construct(array $array);

/**
* Decode a formerly JSON encoded object.
* @param string $json JSON encoded object.
Expand Down

0 comments on commit 4814b30

Please sign in to comment.