Skip to content

Commit

Permalink
Fixed parameter error (#417)
Browse files Browse the repository at this point in the history
FixedRequired parameter $account follows optional parameter $isNewSession
  • Loading branch information
godruoyi authored Apr 23, 2021
1 parent 6e56fca commit bdfb4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Events/WeChatUserAuthorized.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WeChatUserAuthorized
* @param \Overtrue\Socialite\User $user
* @param bool $isNewSession
*/
public function __construct(User $user, $isNewSession = false, string $account)
public function __construct(User $user, $isNewSession = false, string $account = '')
{
$this->user = $user;
$this->isNewSession = $isNewSession;
Expand Down

0 comments on commit bdfb4b0

Please sign in to comment.