Skip to content

Commit

Permalink
fix4
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Oct 13, 2021
1 parent 129364a commit de39d39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Analyser/NodeScopeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,8 @@ static function () use ($scope, $expr): MutatingScope {
$argValueType instanceof GenericClassStringType
&& $argValueType->getGenericType() instanceof ObjectType
) {
$thisType = $argValueType->getGenericType()->getClassName();
$scopeClass = $argValueType->getGenericType()->getClassName();
$thisType = $argValueType->getGenericType();
}
}
$closureBindScope = $scope->enterClosureBind($thisType, $scopeClass);
Expand Down

0 comments on commit de39d39

Please sign in to comment.