We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81eceae commit aa480a1Copy full SHA for aa480a1
src/NamespaceString.php
@@ -27,7 +27,7 @@ public function getNamespace()
27
{
28
$namespace = '';
29
$relativePath = str_replace($this->root, '', $this->fullFilePath);
30
- $relativePathParts = explode('/', $relativePath);
+ $relativePathParts = explode(DIRECTORY_SEPARATOR, $relativePath);
31
for ($i = 1; $i < count($relativePathParts) - 1; ++$i) {
32
$namespace .= '\\'.$relativePathParts[$i];
33
}
0 commit comments