Skip to content

Commit

Permalink
Merge pull request #40 from piotr-cz/patch-2
Browse files Browse the repository at this point in the history
Handle slashes on windows
  • Loading branch information
calbrecht committed Jan 14, 2016
2 parents d266621 + 21d960e commit 64114ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/PHPCodeBrowser/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ class File
*/
public function __construct($name, array $issues = array())
{
if (DIRECTORY_SEPARATOR !== '/')
{
$name = str_replace('/', DIRECTORY_SEPARATOR, $name);
}

$this->name = $name;
$this->issues = $issues;
}
Expand Down

0 comments on commit 64114ae

Please sign in to comment.