summaryrefslogtreecommitdiff
path: root/tests/classes/type_hinting_005c.phpt
blob: 30a114e2a42efef9afcce9009fbc8634c4aebd60 (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(SomeClass $a) {} }

echo "Array hint, should be class.\n";
Class D extends C { function f(array $a) {} }
?>
==DONE==
--EXPECTF--
Strict Standards: Declaration of D::f() should be compatible with C::f(SomeClass $a) in %s on line 5
Array hint, should be class.
==DONE==