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 9a01401 commit 385e226Copy full SHA for 385e226
src/PdoReflection/PdoStatementObjectType.php
@@ -147,6 +147,9 @@ public static function createDefaultType(int $fetchType): Type
147
return self::newWithBothAndFetchType(new MixedType(), $fetchType);
148
}
149
150
+ // differentiate objects based on the local properties,
151
+ // to make sure TypeCombinator::union() will not normalize separate objects away.
152
+ // this means we need to implement equals() and isSuperTypeOf() to compare the local properties.
153
public function equals(Type $type): bool
154
{
155
if ($type instanceof self && $type->fetchType !== null && $type->bothType !== null) {
0 commit comments