Skip to content

Commit

Permalink
Casted signup attributes to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
pmill committed Apr 22, 2018
1 parent 35acc5d commit 846f68f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This library contains a PHP client for AWS Cognito user pools.
Requirements
------------

This library package requires PHP 7.0 or later
This library package requires PHP 7.1 or later

Installation
------------
Expand Down Expand Up @@ -40,6 +40,10 @@ before running them.
Version History
---------------

0.2.4 (22/04/2018)

* Bugfix - Cognito::signUp requires string attributes

0.2.3 (27/01/2018)

* Mapped additional error responses to exceptions
Expand Down
4 changes: 2 additions & 2 deletions src/CognitoClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ public function registerUser($username, $password, array $attributes = [])
$userAttributes = [];
foreach ($attributes as $key => $value) {
$userAttributes[] = [
'Name' => $key,
'Value' => $value,
'Name' => (string)$key,
'Value' => (string)$value,
];
}

Expand Down

0 comments on commit 846f68f

Please sign in to comment.