Skip to content

Commit cdcc334

Browse files
committed
Remove left-over code in NamespaceDirectory.
1 parent c68eb4f commit cdcc334

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/NamespaceDirectory.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,6 @@ public function parent(): ?self {
279279
return NULL;
280280
}
281281

282-
if ('\\' . $subdirName . '\\' !== substr($this->terminatedNamespace, -$l - 2)) {
283-
return NULL;
284-
}
285-
286282
return new self(
287283
$parentDir,
288284
substr($this->terminatedNamespace, 0, -($l + 1)),
@@ -671,7 +667,6 @@ private function scanThisDir(): array {
671667
* would be redundant to do additional filtering here.
672668
*/
673669
private static function scanKnownDir(string $dir): array {
674-
new \DirectoryIterator($dir);
675670
$candidates = \scandir($dir, \SCANDIR_SORT_ASCENDING);
676671
if ($candidates === false) {
677672
throw new \RuntimeException("Failed to scandir('$dir').");

0 commit comments

Comments
 (0)