summaryrefslogtreecommitdiff
path: root/tests/classes/type_hinting_005d.phpt
blob: 830054d03de109a66057927c0d3dabd5e4def174 (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($a) {} }

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