summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/inheritance007.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/return_types/inheritance007.phpt')
-rw-r--r--Zend/tests/return_types/inheritance007.phpt3
1 files changed, 0 insertions, 3 deletions
diff --git a/Zend/tests/return_types/inheritance007.phpt b/Zend/tests/return_types/inheritance007.phpt
index 86d0bd9d69..af1738f807 100644
--- a/Zend/tests/return_types/inheritance007.phpt
+++ b/Zend/tests/return_types/inheritance007.phpt
@@ -1,9 +1,7 @@
--TEST--
Inheritance Hinting Compile Checking Failure Internal Classes
-
--INI--
opcache.enable_cli=1
-
--FILE--
<?php
class Foo {
@@ -17,6 +15,5 @@ class Bar extends Foo {
return new ArrayObject([1, 2]);
}
}
-
--EXPECTF--
Fatal error: Declaration of Bar::test(): ArrayObject must be compatible with Foo::test(): Traversable in %sinheritance007.php on line 12