Skip to content

Commit 239f07e

Browse files
committed
Add internal toMutatingScope on Scope interface
1 parent b0bc22b commit 239f07e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Analyser/Generator/GeneratorScope.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4251,4 +4251,9 @@ public function invokeNodeCallback(Node $node): void
42514251
Fiber::suspend(new NodeCallbackRequest($node, $this, null));
42524252
}
42534253

4254+
public function toMutatingScope(): self
4255+
{
4256+
return $this;
4257+
}
4258+
42544259
}

src/Analyser/Scope.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,7 @@ public function isInFirstLevelStatement(): bool;
150150

151151
public function getPhpVersion(): PhpVersions;
152152

153+
/** @internal */
154+
public function toMutatingScope(): self;
155+
153156
}

0 commit comments

Comments
 (0)