Skip to content

Commit 35a374a

Browse files
committed
This helps?
1 parent 2839153 commit 35a374a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Type/FileTypeMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function getResolvedPhpDoc(
121121
private function createResolvedPhpDocBlock(string $phpDocKey, NameScope $nameScope, string $phpDocString, string $fileName): ResolvedPhpDocBlock
122122
{
123123
$phpDocNode = $this->resolvePhpDocStringToDocNode($phpDocString);
124-
if ($this->resolvedPhpDocBlockCacheCount >= 512) {
124+
if ($this->resolvedPhpDocBlockCacheCount >= 2048) {
125125
$this->resolvedPhpDocBlockCache = array_slice(
126126
$this->resolvedPhpDocBlockCache,
127127
1,
@@ -169,7 +169,7 @@ private function getNameScopeMap(string $fileName): array
169169
{
170170
if (!isset($this->memoryCache[$fileName])) {
171171
$map = $this->createResolvedPhpDocMap($fileName);
172-
if ($this->memoryCacheCount >= 512) {
172+
if ($this->memoryCacheCount >= 2048) {
173173
$this->memoryCache = array_slice(
174174
$this->memoryCache,
175175
1,

0 commit comments

Comments
 (0)