Skip to content

Commit

Permalink
SDK-2357 updated requirements_not_met_details to match api
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jun 21, 2024
1 parent 01f0bcd commit 1ae57b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/Identity/ErrorReason.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ class ErrorReason


/**
* @param RequirementNotMetDetails $data
* @param array<int, array<string, string>> $data
*/
public function __construct(RequirementNotMetDetails $data)
public function __construct(array $data)
{
$this->requirementNotMetDetails = $data;
$this->requirementNotMetDetails = new RequirementNotMetDetails($data);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Identity/WrappedReceipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function __construct(array $sessionData)
if (isset($sessionData['error'])) {
$this->error = $sessionData['error'];
}
if (isset($sessionData['errorReason'])) {
$this->errorReason = $sessionData['errorReason'];
if (isset($sessionData['errorDetails'])) {
$this->errorReason = new ErrorReason($sessionData['errorDetails']['error_reason']);
}
}

Expand Down

0 comments on commit 1ae57b1

Please sign in to comment.