mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-19 08:18:38 +00:00
PHPstan on test code
This commit is contained in:
@ -18,7 +18,7 @@ class DrawMarginTest extends TestCase
|
||||
$this->assertDrawMargin(0.33, $beta, 2.5111010132487492);
|
||||
}
|
||||
|
||||
private function assertDrawMargin($drawProbability, $beta, $expected): void
|
||||
private function assertDrawMargin(float $drawProbability, float $beta, float $expected): void
|
||||
{
|
||||
$actual = DrawMargin::getDrawMarginFromDrawProbability($drawProbability, $beta);
|
||||
$this->assertEqualsWithDelta($expected, $actual, DrawMarginTest::ERROR_TOLERANCE);
|
||||
|
Reference in New Issue
Block a user