Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cartalyst\Sentinel\Users\EloquentUser::getUserId(): Return value must be of type int, null returned #560

Open
tidcp opened this issue Jun 14, 2021 · 0 comments

Comments

@tidcp
Copy link

tidcp commented Jun 14, 2021

Your Environment

  • OS and Version: MacOS, Laravel 6
  • PHP Version: 8
  • Sentinel Version: 3.0.4

Expected behaviour

Activation::completed($user) to return boolean

Actual behaviour

Activation::completed($user) results in error Cartalyst\Sentinel\Users\EloquentUser::getUserId(): Return value must be of type int, null returned

public function getUserId(): int
{
return $this->getKey();
}

Steps to reproduce

Calling Activation::completed() anywhere leads to this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant