Skip to content

Commit 7ab7b05

Browse files
committed
Revert changes to User::fresh() but leave comment regarding upgrading Eloquent
1 parent ddd4a35 commit 7ab7b05

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## v0.3.1.20
44

5-
-
5+
- Revert changes to User::fresh() but leave comment regarding upgrading Eloquent
66

77
## v0.3.1.19
88

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)