Skip to content

Commit

Permalink
Merge pull request #7742 from nglasl/3.6
Browse files Browse the repository at this point in the history
FIX, adding a missing return statement.
  • Loading branch information
dhensby committed Jan 9, 2018
2 parents a049876 + 2ef4a2d commit 4c51cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ protected function addWrapperMethod($method, $wrap) {
protected function createMethod($method, $code) {
self::$extra_methods[get_class($this)][strtolower($method)] = array (
'function' => function($obj, $args) use ($code) {
eval($code);
return eval($code);
}
);
}
Expand Down

0 comments on commit 4c51cf6

Please sign in to comment.