1--TEST--
2Parameter variance with no type (class)
3--FILE--
4<?php
5
6class Foo {
7    function testParentClass(Foo $foo) {}
8    function testBothClass(Foo $foo) {}
9    function testChildClass($foo) {}
10    function testNoneClass($foo) {}
11}
12
13class Bar extends Foo {
14    function testParentClass($foo) {}
15    function testBothClass(Foo $foo) {}
16    function testChildClass(Foo $foo) {}
17    function testNoneClass($foo) {}
18}
19
20?>
21--EXPECTF--
22Fatal error: Declaration of Bar::testChildClass(Foo $foo) must be compatible with Foo::testChildClass($foo) in %s on line %d
23