Skip to content

Commit

Permalink
TypeSpecifier::create(): override attribute is a separate method
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Nov 14, 2024
1 parent 6f883c8 commit 3543815
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function specifyTypes(MethodReflection $methodReflection, MethodCall $nod
$reducedType = $this->reduceType($methodCall, $statementType, $scope);

if (null !== $reducedType) {
return $this->typeSpecifier->create($methodCall->var, $reducedType, TypeSpecifierContext::createTruthy(), true);
return $this->typeSpecifier->create($methodCall->var, $reducedType, TypeSpecifierContext::createTruthy(), $scope)->setAlwaysOverwriteTypes();
}
}

Expand Down

0 comments on commit 3543815

Please sign in to comment.