Skip to content

Commit 426f664

Browse files
authored
Merge pull request #75 from gjcarrette/gcarrette_fix_issue_74
Declare factorial as returning a float in order to fix issue 74
2 parents 603e015 + 73aac00 commit 426f664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Scorer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ protected function unwind(int $n): array
260260
* @param int $n
261261
* @return int
262262
*/
263-
protected function factorial(int $n): int
263+
protected function factorial(int $n): float
264264
{
265265
if ($n < 2) {
266266
return 1;

0 commit comments

Comments
 (0)