1--TEST--
2Check type hint compatibility in overrides with array hints.
3--FILE--
4<?php
5Class C { function f(array $a) {} }
6
7echo "Compatible hint.\n";
8Class D1 extends C { function f(array $a) {} }
9
10echo "Class hint, should be array.\n";
11Class D2 extends C { function f(SomeClass $a) {} }
12?>
13==DONE==
14--EXPECTF--
15Strict Standards: Declaration of D2::f() should be compatible with C::f(array $a) in %s on line 8
16Compatible hint.
17Class hint, should be array.
18==DONE==
19