1--TEST--
2It's not possible to remove required parameter before a variadic parameter
3--FILE--
4<?php
5
6/* Theoretically this should be valid because it weakens the constraint, but
7 * PHP does not allow this (for non-variadics), so I'm not allowing it here, too,
8 * to stay consistent. */
9
10interface DB {
11    public function query($query, ...$params);
12}
13
14class MySQL implements DB {
15    public function query(...$params) { }
16}
17
18?>
19--EXPECTF--
20Fatal error: Declaration of MySQL::query() must be compatible with DB::query($query, ...$params) in %s on line %d
21