charm/util-closuretool

Tool to print information about a closure/callback for debugging purposes.

Installs: 774

Dependents: 4

Suggesters: 0

Security: 0

pkg:composer/charm/util-closuretool

1.0.0 2022-06-01 13:58 UTC

This package is not auto-updated.

Last update: 2025-10-03 04:56:53 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)