Skip to content

Commit 6bfc481

Browse files
author
Greg Bowler
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # src/Token.php
2 parents d3bea61 + 81ecf54 commit 6bfc481

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Token.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
namespace Authwave;
33

4+
use stdClass;
5+
46
class Token {
57
const ENCRYPTION_METHOD = "aes128";
68

@@ -65,7 +67,7 @@ public function decryptResponseCipher(string $cipher):UserData {
6567
return new UserData(
6668
$data->{"uuid"},
6769
$data->{"email"},
68-
$data->{"fields"}
70+
$data->{"fields"} ?? new StdClass()
6971
);
7072
}
7173
}

0 commit comments

Comments
 (0)