diff options
Diffstat (limited to 'Zend/tests/return_types/005.phpt')
-rw-r--r-- | Zend/tests/return_types/005.phpt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/tests/return_types/005.phpt b/Zend/tests/return_types/005.phpt index f8d666fae5..a114b3ee93 100644 --- a/Zend/tests/return_types/005.phpt +++ b/Zend/tests/return_types/005.phpt @@ -1,5 +1,6 @@ --TEST-- Return value fails inheritance check in method + --FILE-- <?php class foo {} @@ -12,6 +13,7 @@ class qux { $qux = new qux(); $qux->foo(); + --EXPECTF-- Fatal error: Uncaught TypeError: Return value of qux::foo() must be an instance of foo, instance of qux returned in %s:%d Stack trace: |