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