Fix dump.name for Windows file paths
Wrong variables were used in line 118 ($file -> $name)
This commit is contained in:
parent
2cca8617b9
commit
a025dea06e
@ -115,7 +115,7 @@ class DumpDataCollector extends DataCollector implements DataDumperInterface
|
|||||||
|
|
||||||
if (false === $name) {
|
if (false === $name) {
|
||||||
$name = strtr($file, '\\', '/');
|
$name = strtr($file, '\\', '/');
|
||||||
$name = substr($file, strrpos($file, '/') + 1);
|
$name = substr($name, strrpos($name, '/') + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt');
|
$this->data[] = compact('data', 'name', 'file', 'line', 'fileExcerpt');
|
||||||
|
Reference in New Issue
Block a user