Skip to content

Commit 5c0adca

Browse files
committed
TypeSpecifier::create(): override attribute is a separate method
1 parent 7c11e33 commit 5c0adca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Extensions/PdoStatementExecuteTypeSpecifyingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function specifyTypes(MethodReflection $methodReflection, MethodCall $nod
4949
}
5050

5151
if (null !== $inferredType) {
52-
return $this->typeSpecifier->create($methodCall->var, $inferredType, TypeSpecifierContext::createTruthy(), true);
52+
return $this->typeSpecifier->create($methodCall->var, $inferredType, TypeSpecifierContext::createTruthy(), $scope)->setAlwaysOverwriteTypes();
5353
}
5454

5555
return new SpecifiedTypes();

0 commit comments

Comments
 (0)