Skip to content

Commit

Permalink
Fix dump.name for Windows file paths
Browse files Browse the repository at this point in the history
Wrong variables were used in line 118 ($file -> $name)
  • Loading branch information
King2500 committed Feb 14, 2015
1 parent 2cca861 commit a025dea
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -115,7 +115,7 @@ public function dump(Data $data)

if (false === $name) {
$name = strtr($file, '\\', '/');
$name = substr($file, strrpos($file, '/') + 1);
$name = substr($name, strrpos($name, '/') + 1);
}

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

0 comments on commit a025dea

Please sign in to comment.