Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 0cd7869

Browse files
authored
Merge pull request #126 from klandaika/windows-compatibility
Windows compatibility fix.
2 parents 014bd53 + 0c6e19f commit 0cd7869

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/RuleSet/Loader/Composer/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function fromArray(array $package)
4242
*/
4343
public function generatePackageKey()
4444
{
45-
return str_replace('/', '_', $this->name).'_'.$this->version;
45+
return str_replace(array('/', '\\', ':'), '_', $this->name).'_'.$this->version;
4646
}
4747

4848
/**

src/RuleSet/Loader/DirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ public function loadRuleSet($path)
5656
*/
5757
private function generateDirectoryKey($path)
5858
{
59-
return str_replace('/', '_', $path);
59+
return str_replace(array('/', '\\', ':'), '_', $path);
6060
}
6161
}

0 commit comments

Comments
 (0)