1010use DateTime ;
1111use DateTimeImmutable ;
1212use DateTimeInterface ;
13+ use Exception ;
1314use Generator ;
1415use InvalidArgumentException ;
1516use Iterator ;
1819use PHPStan \TrinaryLogic ;
1920use PHPStan \Type \Accessory \HasMethodType ;
2021use PHPStan \Type \Accessory \HasPropertyType ;
22+ use PHPStan \Type \Constant \ConstantIntegerType ;
2123use PHPStan \Type \Constant \ConstantStringType ;
2224use PHPStan \Type \Generic \GenericObjectType ;
2325use PHPStan \Type \Generic \TemplateTypeFactory ;
2628use SimpleXMLElement ;
2729use stdClass ;
2830use Throwable ;
31+ use ThrowPoints \TryCatch \MyInvalidArgumentException ;
2932use Traversable ;
3033use function sprintf ;
3134
@@ -298,7 +301,7 @@ public function dataIsSuperTypeOf(): array
298301 39 => [
299302 new ObjectType (Throwable::class, new ObjectType (InvalidArgumentException::class)),
300303 new ObjectType ('Exception ' ),
301- TrinaryLogic::createYes (),
304+ TrinaryLogic::createMaybe (),
302305 ],
303306 40 => [
304307 new ObjectType (Throwable::class, new ObjectType ('Exception ' )),
@@ -313,7 +316,7 @@ public function dataIsSuperTypeOf(): array
313316 42 => [
314317 new ObjectType (Throwable::class, new ObjectType ('Exception ' )),
315318 new ObjectType (Throwable::class),
316- TrinaryLogic::createYes (),
319+ TrinaryLogic::createMaybe (),
317320 ],
318321 43 => [
319322 new ObjectType (Throwable::class),
@@ -360,6 +363,49 @@ public function dataIsSuperTypeOf(): array
360363 ),
361364 TrinaryLogic::createMaybe (),
362365 ],
366+ 49 => [
367+ new ObjectType (Exception::class, new ObjectType (InvalidArgumentException::class)),
368+ new ObjectType (InvalidArgumentException::class),
369+ TrinaryLogic::createNo (),
370+ ],
371+ 50 => [
372+ new ObjectType (Exception::class, new ObjectType (InvalidArgumentException::class)),
373+ new ObjectType (MyInvalidArgumentException::class),
374+ TrinaryLogic::createNo (),
375+ ],
376+ 51 => [
377+ new ObjectType (Exception::class, new ObjectType (InvalidArgumentException::class)),
378+ new ObjectType (LogicException::class),
379+ TrinaryLogic::createMaybe (),
380+ ],
381+ 52 => [
382+ new ObjectType (InvalidArgumentException::class, new ObjectType (MyInvalidArgumentException::class)),
383+ new ObjectType (Exception::class),
384+ TrinaryLogic::createMaybe (),
385+ ],
386+ 53 => [
387+ new ObjectType (InvalidArgumentException::class, new ObjectType (MyInvalidArgumentException::class)),
388+ new ObjectType (Exception::class, new ObjectType (InvalidArgumentException::class)),
389+ TrinaryLogic::createNo (),
390+ ],
391+ 54 => [
392+ new ObjectType (InvalidArgumentException::class),
393+ new ObjectType (Exception::class, new ObjectType (InvalidArgumentException::class)),
394+ TrinaryLogic::createNo (),
395+ ],
396+ 55 => [
397+ new ObjectType (stdClass::class, new ObjectType (Throwable::class)),
398+ new ObjectType (Throwable::class),
399+ TrinaryLogic::createNo (),
400+ ],
401+ 56 => [
402+ new ObjectType (Type::class, new UnionType ([
403+ new ObjectType (ConstantIntegerType::class),
404+ new ObjectType (IntegerRangeType::class),
405+ ])),
406+ new ObjectType (IntegerType::class),
407+ TrinaryLogic::createMaybe (),
408+ ],
363409 ];
364410 }
365411
0 commit comments