Skip to content

Commit 73aac00

Browse files
author
George Carrette
committed
Declare factorial as returning a float in order to fix issue 74
1 parent f6a82ae commit 73aac00

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)