Skip to content

Commit 4e56e55

Browse files
committed
Removed backslash from classes mapped with it for sake of normalization
1 parent aecbe19 commit 4e56e55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mapping/Mapper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function __construct(array &$mappings = null)
4141
);
4242
}
4343

44-
$this->classMap[$mapping->getClassName()] = $mapping;
45-
$this->aliasMap[$mapping->getClassAlias()] = $mapping->getClassName();
44+
$this->classMap[ltrim($mapping->getClassName(), "\\")] = $mapping;
45+
$this->aliasMap[ltrim($mapping->getClassAlias(), "\\")] = $mapping->getClassName();
4646
}
4747
}
4848
}

0 commit comments

Comments
 (0)