Skip to content

Commit 150b731

Browse files
committed
Scope should not remeber the function scope
1 parent f74a18a commit 150b731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Analyser/MutatingScope.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public function rememberConstructorScope(): self
348348
return $this->scopeFactory->create(
349349
$this->context,
350350
$this->isDeclareStrictTypes(),
351-
$this->getFunction(),
351+
null,
352352
$this->getNamespace(),
353353
$this->rememberConstructorExpressions($this->expressionTypes),
354354
$this->rememberConstructorExpressions($this->nativeExpressionTypes),

0 commit comments

Comments
 (0)