Skip to content

Commit

Permalink
Ignore leading '\\' of the symbol name in GuessFromComposerAutoloader.
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-perreal committed Nov 15, 2019
1 parent af41f89 commit 2608e6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __invoke(string $symbolName): \Generator
return;
}

$path = $this->autoloader->findFile(\substr($symbolName, 1));
$path = $this->autoloader->findFile(\ltrim($symbolName, '\\'));
if ($path === false) {
return;
}
Expand Down

0 comments on commit 2608e6f

Please sign in to comment.