From cc4aef7451355f339fa3227a5eecc5faf6cc2528 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 7 Nov 2024 11:14:19 +0100 Subject: [PATCH] fix --- src/PdoReflection/PdoStatementObjectType.php | 1 - src/PdoReflection/PdoStatementReflection.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PdoReflection/PdoStatementObjectType.php b/src/PdoReflection/PdoStatementObjectType.php index 0f6d7a6b..0326b15a 100644 --- a/src/PdoReflection/PdoStatementObjectType.php +++ b/src/PdoReflection/PdoStatementObjectType.php @@ -11,7 +11,6 @@ use PHPStan\Type\Constant\ConstantArrayTypeBuilder; use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\FloatType; -use PHPStan\Type\Generic\GenericObjectType; use PHPStan\Type\IntegerRangeType; use PHPStan\Type\IntegerType; use PHPStan\Type\MixedType; diff --git a/src/PdoReflection/PdoStatementReflection.php b/src/PdoReflection/PdoStatementReflection.php index e0997299..36ecb42a 100644 --- a/src/PdoReflection/PdoStatementReflection.php +++ b/src/PdoReflection/PdoStatementReflection.php @@ -87,7 +87,7 @@ public function createGenericStatement(iterable $queryStrings, int $reflectionFe $bothType = $queryReflection->getResultType($queryString, QueryReflector::FETCH_TYPE_BOTH); if (null !== $bothType) { - $genericObjects[] = new PdoStatementObjectType($bothType, $reflectionFetchType); + $genericObjects[] = PdoStatementObjectType::newWithBothAndFetchType($bothType, $reflectionFetchType); } }