nette / php-generator

🐘 Generates neat PHP code for you. Supports new PHP 8.3 features.
https://doc.nette.org/php-generator
Other
2.11k stars 138 forks source link

Enhancement: Closure body code dump #19

Closed dmachehin closed 9 years ago

dmachehin commented 9 years ago

If i'm used Method::from(function($entity, $value){ echo 123; }) It is return only: function ($entity, $value) { } without body code

JanTvrdik commented 9 years ago

That is feature. It is a) impossible to get body from Closure b) expected, Method::from never fills body, only method signature.