Skip to content

Commit b656113

Browse files
committed
fix
1 parent 964b59d commit b656113

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

config/Mysqli.stub

Lines changed: 0 additions & 18 deletions
This file was deleted.

config/stubFiles.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ parameters:
22
stubFiles:
33
- DoctrineDbal.stub
44
- PdoStatement.stub
5-
- Mysqli.stub

src/MysqliReflection/MysqliResultObjectType.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
final class MysqliResultObjectType extends ObjectType
1212
{
13-
private Type $rowType;
13+
private ?Type $rowType;
1414

1515
public function __construct(
1616
string $className,
@@ -32,4 +32,13 @@ public function getRowType(): Type
3232

3333
return $this->rowType;
3434
}
35+
36+
public function getIterableValueType(): \PHPStan\Type\Type
37+
{
38+
if($this->rowType !== null) {
39+
return $this->rowType;
40+
}
41+
42+
return parent::getIterableValueType();
43+
}
3544
}

0 commit comments

Comments
 (0)