diff options
Diffstat (limited to 'Zend/tests/type_declarations/mixed/inheritance/mixed_return_inheritance_success4.phpt')
-rw-r--r-- | Zend/tests/type_declarations/mixed/inheritance/mixed_return_inheritance_success4.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/type_declarations/mixed/inheritance/mixed_return_inheritance_success4.phpt b/Zend/tests/type_declarations/mixed/inheritance/mixed_return_inheritance_success4.phpt new file mode 100644 index 0000000000..ce652bc1cb --- /dev/null +++ b/Zend/tests/type_declarations/mixed/inheritance/mixed_return_inheritance_success4.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test that a no return type can be overridden by the mixed type +--FILE-- +<?php + +class Foo +{ + public function method() {} +} + +class Bar extends Foo +{ + public function method(): mixed {} +} + +?> +--EXPECT-- |