Skip to content

Commit

Permalink
Make PHP < 7 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehedi Hassan authored Aug 30, 2017
1 parent fe23bdd commit cb33f8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Modules/User/Entities/Sentinel/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ public function __call($method, $parameters)
#i: Relation method resolver
if (config()->has($config)) {
$function = config()->get($config);

return ($function->bindTo($this))();
$bound = $function->bindTo($this);

return $bound();
}

#i: No relation found, return the call to parent (Eloquent) to handle it.
Expand Down

0 comments on commit cb33f8c

Please sign in to comment.