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