diff options
Diffstat (limited to 'Zend/tests/argument_restriction_004.phpt')
| -rw-r--r-- | Zend/tests/argument_restriction_004.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/argument_restriction_004.phpt b/Zend/tests/argument_restriction_004.phpt new file mode 100644 index 0000000..599b3e1 --- /dev/null +++ b/Zend/tests/argument_restriction_004.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #55719 (Argument restriction should come with a more specific error message) +--FILE-- +<?php +class Foo { +} + +Abstract Class Base { + abstract public function test(Foo $foo, array $bar, $option = NULL, $extra = 16777215) ; +} + +class Sub extends Base { + public function test(Foo $foo, array $bar, $option = NULL, $extra = 0xffffff ) { + } +} +?> +--EXPECTF-- |
