Skip to content

Commit 329799f

Browse files
Fix
1 parent 7f2adbc commit 329799f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Diff for: tests/Type/Doctrine/Query/QueryResultTypeWalkerTest.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -704,63 +704,63 @@ public function getTestData(): iterable
704704
$this->constantArray([
705705
[
706706
new ConstantIntegerType(1),
707-
TypeCombinator::union(
707+
TypeUtils::toBenevolentUnion(TypeCombinator::union(
708708
new ConstantStringType('1'),
709709
new ConstantIntegerType(1),
710710
new NullType()
711-
),
711+
)),
712712
],
713713
[
714714
new ConstantIntegerType(2),
715-
TypeCombinator::union(
715+
TypeUtils::toBenevolentUnion(TypeCombinator::union(
716716
new ConstantStringType('0'),
717717
new ConstantIntegerType(0),
718718
new ConstantStringType('1'),
719719
new ConstantIntegerType(1),
720720
new NullType()
721-
),
721+
)),
722722
],
723723
[
724724
new ConstantIntegerType(3),
725-
TypeCombinator::union(
725+
TypeUtils::toBenevolentUnion(TypeCombinator::union(
726726
new ConstantStringType('1'),
727727
new ConstantIntegerType(1),
728728
new NullType()
729-
),
729+
)),
730730
],
731731
[
732732
new ConstantIntegerType(4),
733-
TypeCombinator::union(
733+
TypeUtils::toBenevolentUnion(TypeCombinator::union(
734734
new ConstantStringType('0'),
735735
new ConstantIntegerType(0),
736736
new ConstantStringType('1'),
737737
new ConstantIntegerType(1),
738738
new NullType()
739-
),
739+
)),
740740
],
741741
[
742742
new ConstantIntegerType(5),
743-
TypeCombinator::union(
743+
TypeUtils::toBenevolentUnion(TypeCombinator::union(
744744
$this->intStringified(),
745745
new FloatType(),
746746
new NullType()
747-
),
747+
)),
748748
],
749749
[
750750
new ConstantIntegerType(6),
751-
TypeCombinator::union(
751+
TypeUtils::toBenevolentUnion(TypeCombinator::union(
752752
$this->intStringified(),
753753
new FloatType(),
754754
new NullType()
755-
),
755+
)),
756756
],
757757
[
758758
new ConstantIntegerType(7),
759-
TypeCombinator::addNull($this->intStringified()),
759+
TypeUtils::toBenevolentUnion(TypeCombinator::addNull($this->intStringified())),
760760
],
761761
[
762762
new ConstantIntegerType(8),
763-
TypeCombinator::addNull($this->intStringified()),
763+
TypeUtils::toBenevolentUnion(TypeCombinator::addNull($this->intStringified())),
764764
],
765765
]),
766766
'

0 commit comments

Comments
 (0)