diff options
| -rw-r--r-- | Zend/tests/bug72119.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug72119.phpt b/Zend/tests/bug72119.phpt new file mode 100644 index 0000000000..b8f070a25a --- /dev/null +++ b/Zend/tests/bug72119.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #72119 (Interface declaration compatibility regression with default values) +--FILE-- +<?php +interface Foo { + public function bar(array $baz = null); +} + +class Hello implements Foo { + public function bar(array $baz = []) + { + + } +} +echo "OK\n"; +?> +--EXPECT-- +OK |
