diff --git a/src/Support/VarExport/Debug.php b/src/Support/VarExport/Debug.php index f52dbfe..fa428b3 100644 --- a/src/Support/VarExport/Debug.php +++ b/src/Support/VarExport/Debug.php @@ -58,10 +58,11 @@ private function writeToLog(array $items, string $callPath): void $dumper->dump($cloner->cloneVar($item)); + $output .= $callPath; + fwrite($handle, "[{$key}] " . $output . PHP_EOL); } - fwrite($handle, $callPath); fclose($handle); }