A framework agnostic authentication & authorization system.
BSD 3-Clause "New" or "Revised" License
1.51k
stars
238
forks
source link
Cartalyst\Sentinel\Users\EloquentUser::getUserId(): Return value must be of type int, null returned #560
Closed
tidcp closed 1 month ago
Your Environment
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