File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments