diff options
author | Niklas Keller <me@kelunik.com> | 2017-01-01 15:53:24 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-02-04 23:33:24 +0100 |
commit | 2edc3cf8d2dd75501bf1049cf1b3ca57f11f1234 (patch) | |
tree | 55b4e18b06cfec947b7275112b0a8e57f68390e1 /tests/classes | |
parent | 0ecffc8af6bcf6e33e26df1ff6478b838b4bb98b (diff) | |
download | php-git-2edc3cf8d2dd75501bf1049cf1b3ca57f11f1234.tar.gz |
Implement Parameter Type Widening RFC
Diffstat (limited to 'tests/classes')
-rw-r--r-- | tests/classes/type_hinting_005b.phpt | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/classes/type_hinting_005b.phpt b/tests/classes/type_hinting_005b.phpt deleted file mode 100644 index b9fb198fc5..0000000000 --- a/tests/classes/type_hinting_005b.phpt +++ /dev/null @@ -1,14 +0,0 @@ ---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-- -Warning: Declaration of D::f($a) should be compatible with C::f(array $a) in %s on line 5 -No hint, should be array. -==DONE== |