Skip to content

Commit

Permalink
fix PHP 8.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Jan 2, 2022
1 parent 497bf70 commit bd0b364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operators.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
function mod(int|float $number, int $divisor): float
{
return $number % $divisor + $number - round($number);
return (int) $number % $divisor + $number - round($number);
}

/**
Expand Down

0 comments on commit bd0b364

Please sign in to comment.