1--TEST--
2First class callables and strict types
3--FILE--
4<?php
5declare(strict_types=1);
6
7function test(int $i) {
8    var_dump($i);
9}
10
11require __DIR__ . '/first_class_callable_015_weak.inc';
12require __DIR__ . '/first_class_callable_015_strict.inc';
13$fn = test(...);
14do_weak_call($fn);
15try {
16    do_strict_call($fn);
17} catch (Error $e) {
18    echo $e->getMessage(), "\n";
19}
20
21?>
22--EXPECTF--
23int(42)
24test(): Argument #1 ($i) must be of type int, string given, called in %s on line %d
25