From ae5248e8fc3cfeb132ea9fd54c9656d74985d356 Mon Sep 17 00:00:00 2001 From: Miguel Angel Alvarez Date: Fri, 3 Jan 2025 12:38:21 +0100 Subject: [PATCH] commit con error de test --- src/Factorial.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factorial.php b/src/Factorial.php index c9e5d42..0bc802e 100644 --- a/src/Factorial.php +++ b/src/Factorial.php @@ -10,7 +10,7 @@ public function calculate($input) { throw new InvalidArgumentException('No es posible hacer un factorial de nĂºmeros negativos'); } if($input <= 1) { - return 1; + return 6; } return $input * $this->calculate($input - 1); }