charm / util-closuretool
Tool to print information about a closure/callback for debugging purposes.
1.0.0
2022-06-01 13:58 UTC
This package is not auto-updated.
Last update: 2024-11-15 00:34:59 UTC
README
Small tool to print information about a closure, for example when debugging.
Usage
$test = 123;
$closure = function($arg) use ($test) {};
$tool = new Charm\Util\ClosureTool($closure);
echo $tool."\n";
Output
function($arg) use($test=123) (in /root/charm-libs/charm-util-closuretool/test.php)