Skip to content

Commit

Permalink
修复微信公众号授权snsapi_base时user调用getRaw报错问题 (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: 黄浩 <huanghao@zuoshouyisheng.com>
  • Loading branch information
pandasir and 黄浩 authored Nov 25, 2022
1 parent f20bfad commit 1d35b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function setRaw(array $user): self

public function getRaw(): array
{
return $this->getAttribute('raw');
return $this->getAttribute('raw', []);
}

public function setTokenResponse(array $response): self
Expand Down

0 comments on commit 1d35b99

Please sign in to comment.