From 1d35b99af01c6f05094ab08c0451311cdbb63c2c Mon Sep 17 00:00:00 2001 From: pandasir <839027631@qq.com> Date: Fri, 25 Nov 2022 18:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E6=8E=88=E6=9D=83snsapi=5Fbase=E6=97=B6user?= =?UTF-8?q?=E8=B0=83=E7=94=A8getRaw=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=20?= =?UTF-8?q?(#254)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 黄浩 --- src/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/User.php b/src/User.php index eca3554..e6b09d1 100644 --- a/src/User.php +++ b/src/User.php @@ -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