Skip to content

Commit

Permalink
Fix ECRToken and ProvidersSignature not initializing with correct par…
Browse files Browse the repository at this point in the history
…ameters.
  • Loading branch information
firebed committed Jul 4, 2024
1 parent 0a18f34 commit c66f1b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Models/ECRToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ class ECRToken extends Type
public function __construct(string $signingAuthor = null, string $sessionNumber = null)
{
if ($signingAuthor !== null || $sessionNumber !== null) {
parent::__construct(compact('signingAuthor', 'sessionNumber'));
parent::__construct([
'SigningAuthor' => $signingAuthor,
'SessionNumber' => $sessionNumber
]);
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/Models/ProvidersSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ class ProvidersSignature extends Type
public function __construct(string $signingAuthor = null, string $signature = null)
{
if ($signingAuthor !== null || $signature !== null) {
parent::__construct(compact('signingAuthor', 'signature'));
parent::__construct([
'SigningAuthor' => $signingAuthor,
'Signature' => $signature
]);
}
}

Expand Down

0 comments on commit c66f1b5

Please sign in to comment.