1--TEST--
2Promote deprecation warning for int|string type into exception
3--FILE--
4<?php
5
6function test(int|string $arg) {}
7
8set_error_handler(function($_, $msg) {
9    throw new Exception($msg);
10});
11
12try {
13    test(0.5);
14} catch (Exception $e) {
15    echo $e->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20Implicit conversion from float 0.5 to int loses precision
21