diff --git a/src/Pairs.php b/src/Pairs.php index 2185585..7fc9e56 100644 --- a/src/Pairs.php +++ b/src/Pairs.php @@ -10,6 +10,8 @@ function cons($x, $y) return $x; case "cdr": return $y; + default: + throw new \InvalidArgumentException("Invalid method $method."); } }; }