Skip to content

Commit

Permalink
fix(federation): Allow Oracles empty strings
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Dec 10, 2024
1 parent 5af0d13 commit 280b492
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/unstable/Security/Signature/Model/Signatory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
* @method void setType(int $type)
* @method int getStatus()
* @method void setStatus(int $status)
* @method void setAccount(string $account)
* @method string getAccount()
* @method void setAccount(?string $account)
* @method void setMetadata(array $metadata)
* @method ?array getMetadata()
* @method void setCreation(int $creation)
Expand All @@ -56,7 +55,7 @@ class Signatory extends Entity implements JsonSerializable {
protected string $host = '';
protected string $publicKey = '';
protected string $privateKey = '';
protected string $account = '';
protected ?string $account = '';
protected int $type = 9;
protected int $status = 1;
protected ?array $metadata = null;
Expand Down Expand Up @@ -145,6 +144,13 @@ public function getSignatoryStatus(): SignatoryStatus {
return SignatoryStatus::from($this->getStatus());
}

/**
* @experimental 31.0.0
*/
public function getAccount(): string {
return $this->account ?? '';
}

/**
* update an entry in metadata
*
Expand Down

0 comments on commit 280b492

Please sign in to comment.