Commit cb33f8c4 authored by Mehedi Hassan's avatar Mehedi Hassan Committed by GitHub

Make PHP < 7 happy

parent fe23bdd9
No related merge requests found
......@@ -113,8 +113,9 @@ class User extends EloquentUser implements UserInterface, AuthenticatableContrac
#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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment