Skip to content

Commit 9b07b9b

Browse files
committed
Revert changes to User::fresh() but leave comment regarding upgrading Eloquent
1 parent b3fd92c commit 9b07b9b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v0.3.1.20
44

55
- Added `pushAlert()`,`clearAlerts()` in `public/js/userfrosting.js` and updated `flashAlerts()`
6+
- Revert changes to User::fresh() but leave comment regarding upgrading Eloquent
67

78
## v0.3.1.19
89

userfrosting/models/database/User.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ public static function isLoggedIn(){
8787
/**
8888
* Refresh the User and their associated Groups from the DB.
8989
*
90+
* If you are getting errors here after upgrading Eloquent, remove the word "array" from the function declaration.
91+
*
9092
* @see http://stackoverflow.com/a/27748794/2970321
9193
*/
92-
public function fresh($options = []){
94+
public function fresh(array $options = []){
9395
// TODO: Update table and column info, in case it has changed?
9496
$user = parent::fresh($options);
9597
$user->getGroupIds();

0 commit comments

Comments
 (0)