1--TEST--
2Error suppression for typehints on variadic arguments works
3--FILE--
4<?php
5
6function test(array... $args) {
7    var_dump($args);
8}
9
10set_error_handler(function($errno, $errstr) {
11    var_dump($errstr);
12    return true;
13});
14
15test([0], [1], 2);
16
17?>
18--EXPECTF--
19string(%d) "Argument 3 passed to test() must be of the type array, integer given, called in %s on line %d and defined"
20array(3) {
21  [0]=>
22  array(1) {
23    [0]=>
24    int(0)
25  }
26  [1]=>
27  array(1) {
28    [0]=>
29    int(1)
30  }
31  [2]=>
32  int(2)
33}
34