1--TEST--
2Illegal variadic inheritance due to reference mismatch
3--FILE--
4<?php
5
6class A {
7    public function test(&$a, &$b) {}
8}
9
10class B extends A {
11    public function test(...$args) {}
12}
13
14?>
15--EXPECTF--
16Fatal error: Declaration of B::test(...$args) must be compatible with A::test(&$a, &$b) in %s on line %d
17