Skip to content

Commit

Permalink
FIX, adding a missing return statement.
Browse files Browse the repository at this point in the history
This causes issues such as an `_function` to incorrectly return null.
  • Loading branch information
Nathan committed Jan 9, 2018
1 parent a049876 commit 2ef4a2d
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 2ef4a2d

Please sign in to comment.