@@ -704,63 +704,63 @@ public function getTestData(): iterable
704
704
$ this ->constantArray ([
705
705
[
706
706
new ConstantIntegerType (1 ),
707
- TypeCombinator::union (
707
+ TypeUtils:: toBenevolentUnion ( TypeCombinator::union (
708
708
new ConstantStringType ('1 ' ),
709
709
new ConstantIntegerType (1 ),
710
710
new NullType ()
711
- ),
711
+ )) ,
712
712
],
713
713
[
714
714
new ConstantIntegerType (2 ),
715
- TypeCombinator::union (
715
+ TypeUtils:: toBenevolentUnion ( TypeCombinator::union (
716
716
new ConstantStringType ('0 ' ),
717
717
new ConstantIntegerType (0 ),
718
718
new ConstantStringType ('1 ' ),
719
719
new ConstantIntegerType (1 ),
720
720
new NullType ()
721
- ),
721
+ )) ,
722
722
],
723
723
[
724
724
new ConstantIntegerType (3 ),
725
- TypeCombinator::union (
725
+ TypeUtils:: toBenevolentUnion ( TypeCombinator::union (
726
726
new ConstantStringType ('1 ' ),
727
727
new ConstantIntegerType (1 ),
728
728
new NullType ()
729
- ),
729
+ )) ,
730
730
],
731
731
[
732
732
new ConstantIntegerType (4 ),
733
- TypeCombinator::union (
733
+ TypeUtils:: toBenevolentUnion ( TypeCombinator::union (
734
734
new ConstantStringType ('0 ' ),
735
735
new ConstantIntegerType (0 ),
736
736
new ConstantStringType ('1 ' ),
737
737
new ConstantIntegerType (1 ),
738
738
new NullType ()
739
- ),
739
+ )) ,
740
740
],
741
741
[
742
742
new ConstantIntegerType (5 ),
743
- TypeCombinator::union (
743
+ TypeUtils:: toBenevolentUnion ( TypeCombinator::union (
744
744
$ this ->intStringified (),
745
745
new FloatType (),
746
746
new NullType ()
747
- ),
747
+ )) ,
748
748
],
749
749
[
750
750
new ConstantIntegerType (6 ),
751
- TypeCombinator::union (
751
+ TypeUtils:: toBenevolentUnion ( TypeCombinator::union (
752
752
$ this ->intStringified (),
753
753
new FloatType (),
754
754
new NullType ()
755
- ),
755
+ )) ,
756
756
],
757
757
[
758
758
new ConstantIntegerType (7 ),
759
- TypeCombinator::addNull ($ this ->intStringified ()),
759
+ TypeUtils:: toBenevolentUnion ( TypeCombinator::addNull ($ this ->intStringified () )),
760
760
],
761
761
[
762
762
new ConstantIntegerType (8 ),
763
- TypeCombinator::addNull ($ this ->intStringified ()),
763
+ TypeUtils:: toBenevolentUnion ( TypeCombinator::addNull ($ this ->intStringified () )),
764
764
],
765
765
]),
766
766
'
0 commit comments