Skip to content

Commit 4f884c9

Browse files
committed
Revert "Slice the inProcess memory cache in FileTypeMapper"
This reverts commit 725b365.
1 parent 725b365 commit 4f884c9

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

src/Type/FileTypeMapper.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ class FileTypeMapper
5151
/** @var (true|callable(): NameScope|NameScope)[][] */
5252
private array $inProcess = [];
5353

54-
private int $inProcessCount = 0;
55-
5654
/** @var array<string, ResolvedPhpDocBlock> */
5755
private array $resolvedPhpDocBlockCache = [];
5856

@@ -106,22 +104,7 @@ public function getResolvedPhpDoc(
106104
return ResolvedPhpDocBlock::createEmpty();
107105
}
108106

109-
if ($this->inProcessCount >= 2048) {
110-
foreach ($this->inProcess as $file => $nameScopes) {
111-
foreach ($nameScopes as $key => $nameScope) {
112-
if ($nameScope === true) {
113-
continue;
114-
}
115-
116-
unset($this->inProcess[$file][$key]);
117-
$this->inProcessCount--;
118-
break;
119-
}
120-
}
121-
}
122-
123107
$this->inProcess[$fileName][$nameScopeKey] = $nameScopeMap[$nameScopeKey];
124-
$this->inProcessCount++;
125108
}
126109

127110
if ($this->inProcess[$fileName][$nameScopeKey] === true) { // PHPDoc has cyclic dependency

0 commit comments

Comments
 (0)