1--TEST--
2Only the last argument can be variadic
3--FILE--
4<?php
5
6function test($foo, ...$bar, $baz) {}
7
8?>
9--EXPECTF--
10Fatal error: Only the last parameter can be variadic in %s on line %d
11