Skip to content

Commit ba33eb7

Browse files
committed
Fix PHP Fatal error that can be thrown when registering a new User
Class definition wasn't compatible with parent class
1 parent 97dbc49 commit ba33eb7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111
- Italian translation ([#950])
1212
- User Registration failing when trying to register two accounts with the same email address ([#953])
1313
- Bad test case for `CoreController::getAsset`.
14+
- Fix PHP Fatal error that can be thrown when registering a new User
1415

1516
## [v4.2.0]
1617
### Changed Requirements

app/sprinkles/account/src/Repository/PasswordResetRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace UserFrosting\Sprinkle\Account\Repository;
1111

12+
use UserFrosting\Sprinkle\Account\Database\Models\Interfaces\UserInterface;
1213
use UserFrosting\Sprinkle\Account\Facades\Password;
1314

1415
/**
@@ -27,7 +28,7 @@ class PasswordResetRepository extends TokenRepository
2728
/**
2829
* {@inheritdoc}
2930
*/
30-
protected function updateUser($user, $args)
31+
protected function updateUser(UserInterface $user, $args)
3132
{
3233
$user->password = Password::hash($args['password']);
3334
// TODO: generate user activity? or do this in controller?

0 commit comments

Comments
 (0)