We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 964b59d commit b656113Copy full SHA for b656113
config/Mysqli.stub
config/stubFiles.neon
@@ -2,4 +2,3 @@ parameters:
2
stubFiles:
3
- DoctrineDbal.stub
4
- PdoStatement.stub
5
- - Mysqli.stub
src/MysqliReflection/MysqliResultObjectType.php
@@ -10,7 +10,7 @@
10
11
final class MysqliResultObjectType extends ObjectType
12
{
13
- private Type $rowType;
+ private ?Type $rowType;
14
15
public function __construct(
16
string $className,
@@ -32,4 +32,13 @@ public function getRowType(): Type
32
33
return $this->rowType;
34
}
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
44
0 commit comments