scalar_float_with_integer_default_strict.phpt   [plain text]


--TEST--
Float type should allow an integer as default even with strict types
--FILE--
<?php

declare(strict_types=1);

function test(float $arg = 0)
{
    var_dump($arg);
}

test();

?>
--EXPECT--
float(0)