FIX, adding a missing return statement.

This causes issues such as an `_function` to incorrectly return null.
This commit is contained in:
Nathan 2018-01-10 09:50:18 +11:00 committed by GitHub
parent a049876418
commit 2ef4a2d4ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -949,7 +949,7 @@ abstract class Object {
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);
}
);
}