Skip to content

Commit

Permalink
Fix autoloader.
Browse files Browse the repository at this point in the history
  • Loading branch information
inisik authored Apr 30, 2018
1 parent 64e620b commit fe0e14f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ClassmapAutoloading.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ protected function setOptions(array $array = array()): bool {
* @return void Return nothing.
*/
protected function load(string $k): void {
$replace = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $k);
$parts = explode(DIRECTORY_SEPARATOR, $replace);
$k = end($parts);
/**
* @var string $baseDir
*/
Expand Down

0 comments on commit fe0e14f

Please sign in to comment.