Skip to content

Commit

Permalink
Supporting PSR-{0,4} fallback directory syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
karoun committed Jun 28, 2018
1 parent 8dc6fd4 commit ee04f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters/BasePSRFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getAutoloadMap(): AutoloadMap {
(new Map($this->source->getAutoloadMap()['class']))
->filterWithKey(
function(string $class_name, string $file): bool {
if (stripos($class_name, $this->prefix) !== 0) {
if ($this->prefix !== '' && stripos($class_name, $this->prefix) !== 0) {
return false;
}
$expected = static::getExpectedPathWithoutExtension(
Expand Down

0 comments on commit ee04f12

Please sign in to comment.