Skip to content

Commit

Permalink
Make Psalm on PHP 5.6 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed May 13, 2019
1 parent 975f866 commit 4bc40c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,8 @@ public static function runtime_speed_test($iterations, $maxTimeout)
$a->mulInt64($b);
}
$end = microtime(true);
$diff = ceil(($end - $start) * 1000);
/** @var int $diff */
$diff = (int) ceil(($end - $start) * 1000);
return $diff < $maxTimeout;
}

Expand Down

0 comments on commit 4bc40c2

Please sign in to comment.