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