Skip to content

Commit acd35c8

Browse files
committed
Remove MutatingScope::enterCatch()
1 parent 49eb18f commit acd35c8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Analyser/MutatingScope.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3748,17 +3748,6 @@ public function enterForeachKey(self $originalScope, Expr $iteratee, string $key
37483748
return $scope;
37493749
}
37503750

3751-
/**
3752-
* @deprecated Use enterCatchType
3753-
* @param Node\Name[] $classes
3754-
*/
3755-
public function enterCatch(array $classes, ?string $variableName): self
3756-
{
3757-
$type = TypeCombinator::union(...array_map(static fn (Node\Name $class): ObjectType => new ObjectType((string) $class), $classes));
3758-
3759-
return $this->enterCatchType($type, $variableName);
3760-
}
3761-
37623751
public function enterCatchType(Type $catchType, ?string $variableName): self
37633752
{
37643753
if ($variableName === null) {

0 commit comments

Comments
 (0)