Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Make sure binding is ok.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Dellaiera authored and Pol Dellaiera committed Sep 20, 2017
1 parent d550e4b commit 8dde8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DynamicObjectsTrait.php
Expand Up @@ -184,7 +184,7 @@ public function doDynamicRequest(\Closure $func, array $parameters = [], $memoiz
return $this->memoize($func, $parameters);
}

return call_user_func_array($func, $parameters);
return call_user_func_array($func->bindTo($this, get_called_class()), $parameters);
}

/**
Expand Down

0 comments on commit 8dde8b8

Please sign in to comment.