Open 8633brown opened 4 years ago
i guess it's just the docs outdated here
yes and no? more the doc block return type.
you're right ya
would it not be better to return false if ::create
returns null? but i suppose this is against semantic versioning?
Your Environment
Expected behaviour
as per the docs
Sentinel::register
should returnbool|UserInterface
Actual behaviour
https://github.com/cartalyst/sentinel/blob/c7420487cd82ef135ed384a75056674902b755bb/src/Users/IlluminateUserRepository.php#L188
IlluminateUserRepository::create
returns null https://github.com/cartalyst/sentinel/blob/c7420487cd82ef135ed384a75056674902b755bb/src/Sentinel.php#L183-L191 which is then returned from `Sentinel::register'