From c8afe34fc4f95b3d25d55bb184995f934541c9da Mon Sep 17 00:00:00 2001 From: Andrey Shelamkoff Date: Mon, 27 May 2024 20:06:20 +0200 Subject: [PATCH] Update ClosureExporter.php --- src/ClosureExporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClosureExporter.php b/src/ClosureExporter.php index a505dba..0cae999 100644 --- a/src/ClosureExporter.php +++ b/src/ClosureExporter.php @@ -30,7 +30,7 @@ public function exportClosure(\Closure $closure): string $node = static::find($ast, $this->createFindCallback($reflector)); if (!$node) { - throw new ExportException("Can't export closure"); + throw new ExportException("Can't export closure", $closure); } $visitor = $this->getVisitor(