Skip to content

Commit

Permalink
Update ClosureExporter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelamkoff authored May 27, 2024
1 parent 70ebcbb commit c8afe34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ClosureExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c8afe34

Please sign in to comment.