Skip to content

Commit 8f3ef5e

Browse files
committed
Test for T of object vs. object super type
1 parent 65cd6cb commit 8f3ef5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/PHPStan/Type/TemplateTypeTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ public function dataIsSuperTypeOf(): array
182182
TrinaryLogic::createMaybe(), // T isSuperTypeTo mixed
183183
TrinaryLogic::createYes(), // mixed isSuperTypeTo T
184184
],
185+
[
186+
$templateType('T', new ObjectWithoutClassType()),
187+
new ObjectWithoutClassType(),
188+
TrinaryLogic::createMaybe(),
189+
TrinaryLogic::createYes(),
190+
],
185191
];
186192
}
187193

0 commit comments

Comments
 (0)