Skip to content

Commit d184c18

Browse files
committed
TypeSpecifier::create(): override attribute is a separate method
1 parent a7a9501 commit d184c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Extensions/PdoStatementSetFetchModeTypeSpecifyingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function specifyTypes(MethodReflection $methodReflection, MethodCall $nod
4545
$reducedType = $this->reduceType($methodCall, $statementType, $scope);
4646

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

0 commit comments

Comments
 (0)