diff options
Diffstat (limited to 'tests/classes/type_hinting_005b.phpt')
-rw-r--r-- | tests/classes/type_hinting_005b.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/classes/type_hinting_005b.phpt b/tests/classes/type_hinting_005b.phpt new file mode 100644 index 0000000..f13ab95 --- /dev/null +++ b/tests/classes/type_hinting_005b.phpt @@ -0,0 +1,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== |