Closed dmachehin closed 9 years ago
If i'm used Method::from(function($entity, $value){ echo 123; }) It is return only: function ($entity, $value) { } without body code
Method::from(function($entity, $value){ echo 123; })
function ($entity, $value) { }
That is feature. It is a) impossible to get body from Closure b) expected, Method::from never fills body, only method signature.
Method::from
If i'm used
Method::from(function($entity, $value){ echo 123; })
It is return only:function ($entity, $value) { }
without body code