@@ -206,6 +206,48 @@ public function dataIsSuperTypeOf(): array
206206 TrinaryLogic::createMaybe (),
207207 TrinaryLogic::createMaybe (),
208208 ],
209+ [
210+ $ templateType ('T ' , new MixedType (true )),
211+ $ templateType ('U ' , new UnionType ([new IntegerType (), new StringType ()])),
212+ TrinaryLogic::createMaybe (),
213+ TrinaryLogic::createMaybe (),
214+ ],
215+ [
216+ $ templateType ('T ' , new MixedType (true )),
217+ $ templateType ('U ' , new BenevolentUnionType ([new IntegerType (), new StringType ()])),
218+ TrinaryLogic::createMaybe (),
219+ TrinaryLogic::createMaybe (),
220+ ],
221+ [
222+ $ templateType ('T ' , new ObjectType (\stdClass::class)),
223+ $ templateType ('U ' , new BenevolentUnionType ([new IntegerType (), new StringType ()])),
224+ TrinaryLogic::createNo (),
225+ TrinaryLogic::createNo (),
226+ ],
227+ [
228+ $ templateType ('T ' , new BenevolentUnionType ([new IntegerType (), new StringType ()])),
229+ $ templateType ('T ' , new BenevolentUnionType ([new IntegerType (), new StringType ()])),
230+ TrinaryLogic::createYes (),
231+ TrinaryLogic::createYes (),
232+ ],
233+ [
234+ $ templateType ('T ' , new UnionType ([new IntegerType (), new StringType ()])),
235+ $ templateType ('T ' , new UnionType ([new IntegerType (), new StringType ()])),
236+ TrinaryLogic::createYes (),
237+ TrinaryLogic::createYes (),
238+ ],
239+ [
240+ $ templateType ('T ' , new UnionType ([new IntegerType (), new StringType ()])),
241+ $ templateType ('T ' , new BenevolentUnionType ([new IntegerType (), new StringType ()])),
242+ TrinaryLogic::createMaybe (),
243+ TrinaryLogic::createMaybe (),
244+ ],
245+ [
246+ $ templateType ('T ' , new UnionType ([new IntegerType (), new StringType ()])),
247+ $ templateType ('T ' , new IntegerType ()),
248+ TrinaryLogic::createMaybe (),
249+ TrinaryLogic::createMaybe (),
250+ ],
209251 ];
210252 }
211253
0 commit comments