blob: fc6fc21b178ef4c3947b60354aa8ef424974ed44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Float type should not allow invalid types as default
--FILE--
<?php
function test(float $arg = true)
{
var_dump($arg);
}
test();
?>
--EXPECTF--
Fatal error: Cannot use bool as default value for parameter $arg of type float in %s on line %d
|