Skip to content

Commit

Permalink
bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Mar 2, 2022
1 parent c385079 commit 0969dfb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ public function jsonSerialize(): array
return $this->attributes;
}

public function __serialize()
public function __serialize(): array
{
return serialize($this->attributes);
return $this->attributes;
}

public function __unserialize($serialized)
public function __unserialize(array $serialized)
{
$this->attributes = unserialize($serialized) ?: [];
$this->attributes = $serialized ?: [];
}

public function getProvider(): \Overtrue\Socialite\Contracts\ProviderInterface
Expand Down

0 comments on commit 0969dfb

Please sign in to comment.