Skip to content

Commit 9a9289b

Browse files
authored
Merge branch refs/heads/1.12.x into 2.0.x
2 parents ac1f539 + ccfb4ab commit 9a9289b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Type/AcceptsResult.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static function extremeIdentity(self ...$operands): self
107107
}
108108
}
109109

110-
return new self($result, $reasons);
110+
return new self($result, array_values(array_unique($reasons)));
111111
}
112112

113113
public static function maxMin(self ...$operands): self
@@ -124,7 +124,7 @@ public static function maxMin(self ...$operands): self
124124
}
125125
}
126126

127-
return new self($result, $reasons);
127+
return new self($result, array_values(array_unique($reasons)));
128128
}
129129

130130
}

src/Type/IsSuperTypeOfResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private static function mergeReasons(array $operands): array
158158
}
159159
}
160160

161-
return $reasons;
161+
return array_values(array_unique($reasons));
162162
}
163163

164164
}

0 commit comments

Comments
 (0)