1--TEST--
2No coercion should be applied to type false
3--FILE--
4<?php
5
6function test(false $v) { var_dump($v); }
7
8try {
9    test(0);
10} catch (\TypeError $e) {
11    echo $e->getMessage(), \PHP_EOL;
12}
13try {
14    test('');
15} catch (\TypeError $e) {
16    echo $e->getMessage(), \PHP_EOL;
17}
18try {
19    test([]);
20} catch (\TypeError $e) {
21    echo $e->getMessage(), \PHP_EOL;
22}
23
24?>
25--EXPECTF--
26test(): Argument #1 ($v) must be of type false, int given, called in %s on line %d
27test(): Argument #1 ($v) must be of type false, string given, called in %s on line %d
28test(): Argument #1 ($v) must be of type false, array given, called in %s on line %d
29