Skip to content

Commit 5110cb9

Browse files
committed
Update PdoStatementObjectType.php
1 parent c7572c4 commit 5110cb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PdoReflection/PdoStatementObjectType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ private function reduceBothType(Type $bothType, int $fetchType): Type
109109

110110
$properties = [];
111111
foreach ($keyTypes as $i => $keyType) {
112-
if (!$keyType->isString()->yes()) {
112+
if (! $keyType->isString()->yes()) {
113113
continue;
114114
}
115-
$properties[$keyType->getValue()] = $valueTypes[$i];
115+
$properties[(string) $keyType->getValue()] = $valueTypes[$i];
116116
}
117117

118118
return new IntersectionType([
119119
new ObjectType(\stdClass::class),
120-
new ObjectShapeType($properties, [])
120+
new ObjectShapeType($properties, []),
121121
]);
122122
}
123123

0 commit comments

Comments
 (0)