Skip to content

Commit cb3b93b

Browse files
staabmondrejmirtes
authored andcommitted
Revert "MutatingScope resolvedTypes is an array of ExpressionTypeHolder"
This reverts commit 1ad06f5.
1 parent b32d782 commit cb3b93b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Analyser/MutatingScope.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class MutatingScope implements Scope, NodeCallbackInvoker
179179
private const KEEP_VOID_ATTRIBUTE_NAME = 'keepVoid';
180180
private const CONTAINS_SUPER_GLOBAL_ATTRIBUTE_NAME = 'containsSuperGlobal';
181181

182-
/** @var array<string, ExpressionTypeHolder> */
182+
/** @var Type[] */
183183
private array $resolvedTypes = [];
184184

185185
/** @var array<string, self> */
@@ -872,9 +872,9 @@ public function getType(Expr $node): Type
872872
$key = $this->getNodeKey($node);
873873

874874
if (!array_key_exists($key, $this->resolvedTypes)) {
875-
$this->resolvedTypes[$key] = ExpressionTypeHolder::createYes($node, TypeUtils::resolveLateResolvableTypes($this->resolveType($key, $node)));
875+
$this->resolvedTypes[$key] = TypeUtils::resolveLateResolvableTypes($this->resolveType($key, $node));
876876
}
877-
return $this->resolvedTypes[$key]->getType();
877+
return $this->resolvedTypes[$key];
878878
}
879879

880880
public function getScopeType(Expr $expr): Type

0 commit comments

Comments
 (0)