Skip to content

Commit cc4aef7

Browse files
committed
fix
1 parent 7532530 commit cc4aef7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/PdoReflection/PdoStatementObjectType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use PHPStan\Type\Constant\ConstantArrayTypeBuilder;
1212
use PHPStan\Type\Constant\ConstantIntegerType;
1313
use PHPStan\Type\FloatType;
14-
use PHPStan\Type\Generic\GenericObjectType;
1514
use PHPStan\Type\IntegerRangeType;
1615
use PHPStan\Type\IntegerType;
1716
use PHPStan\Type\MixedType;

src/PdoReflection/PdoStatementReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function createGenericStatement(iterable $queryStrings, int $reflectionFe
8787
$bothType = $queryReflection->getResultType($queryString, QueryReflector::FETCH_TYPE_BOTH);
8888

8989
if (null !== $bothType) {
90-
$genericObjects[] = new PdoStatementObjectType($bothType, $reflectionFetchType);
90+
$genericObjects[] = PdoStatementObjectType::newWithBothAndFetchType($bothType, $reflectionFetchType);
9191
}
9292
}
9393

0 commit comments

Comments
 (0)