Skip to content

Commit

Permalink
Merge pull request #75 from gjcarrette/gcarrette_fix_issue_74
Browse files Browse the repository at this point in the history
Declare factorial as returning a float in order to fix issue 74
  • Loading branch information
mkopinsky authored Feb 24, 2025
2 parents 603e015 + 73aac00 commit 426f664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scorer.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ protected function unwind(int $n): array
* @param int $n
* @return int
*/
protected function factorial(int $n): int
protected function factorial(int $n): float
{
if ($n < 2) {
return 1;
Expand Down

0 comments on commit 426f664

Please sign in to comment.