Skip to content

Commit 6ec9c1a

Browse files
committed
Fix dump.name for Windows file paths
Wrong variables were used in line 118 ($file -> $name)
1 parent c17f240 commit 6ec9c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function dump(Data $data)
115115

116116
if (false === $name) {
117117
$name = strtr($file, '\\', '/');
118-
$name = substr($file, strrpos($file, '/') + 1);
118+
$name = substr($name, strrpos($name, '/') + 1);
119119
}
120120

121121
$this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt');

0 commit comments

Comments
 (0)