Skip to content

Commit 39f4e2f

Browse files
committed
added back exception
1 parent 2712866 commit 39f4e2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TrinaryLogic.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ public static function lazyExtremeIdentity(
240240
*/
241241
public static function maxMin(self ...$operands): self
242242
{
243+
if ($operands === []) {
244+
throw new ShouldNotHappenException();
245+
}
246+
243247
$max = self::NO;
244248
$min = self::YES;
245249
foreach ($operands as $operand) {

0 commit comments

Comments
 (0)