Skip to content

Commit

Permalink
Release/v1.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
caiquearaujo committed Sep 28, 2022
2 parents 9fc6223 + af8d32d commit d287456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/CredentialModel.php
Expand Up @@ -181,11 +181,11 @@ public function export(): array
*/
public static function import(array $data)
{
$m = new CredentialModel();
$m = new static();

$m->set('token_type', $data['token_type'] ?? static::TOKEN_TYPE_BEARER);
$m->set('access_token', $data['access_token'] ?? null);
$m->set('scope', $data['scope'] ?? null);
$m->set('scope', $data['scope'] ?? []);
$m->set('timezone', $data['timezone'] ?? new DateTimeZone('UTC'));

if ( !empty($data['consented_on']) ) $m->set('consented_on', $data['consented_on']);
Expand Down

0 comments on commit d287456

Please sign in to comment.