Types in tests
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Jens True 2024-02-09 08:06:34 +00:00
parent 38d5d731de
commit 4e7ae9acb9

@ -20,10 +20,10 @@ class BasicMathTest extends TestCase
{
$arr = [1, 1, 1, 1];
$func_return = function ($f) {
$func_return = function (float $f): float {
return $f;
};
$func_double = function ($f) {
$func_double = function (float $f): float {
return $f * 2;
};
$this->assertEquals(4, BasicMath::sum($arr, $func_return));