Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Key/AbstractKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function jsonSerialize(): array
/**
* @since 1.0.0
*/
public static function createFromJSON(string $json, KeyInterface $prototype = null): KeyInterface
public static function createFromJSON(string $json, ?KeyInterface $prototype = null): KeyInterface
{
$assoc = \json_decode($json, true);

Expand Down
2 changes: 1 addition & 1 deletion src/Key/Rsa.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function jsonSerialize(): array
*
* @return self
*/
public static function createFromJSON(string $json, KeyInterface $prototype = null): KeyInterface
public static function createFromJSON(string $json, ?KeyInterface $prototype = null): KeyInterface
{
if (!$prototype instanceof self) {
$prototype = new static();
Expand Down