summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/inheritance002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/return_types/inheritance002.phpt')
-rw-r--r--Zend/tests/return_types/inheritance002.phpt2
1 files changed, 0 insertions, 2 deletions
diff --git a/Zend/tests/return_types/inheritance002.phpt b/Zend/tests/return_types/inheritance002.phpt
index 8cb63b6fc8..bb00b7e243 100644
--- a/Zend/tests/return_types/inheritance002.phpt
+++ b/Zend/tests/return_types/inheritance002.phpt
@@ -1,6 +1,5 @@
--TEST--
Return type covariance; extends abstract class
-
--FILE--
<?php
@@ -11,6 +10,5 @@ abstract class A {
class B extends A {
function foo(): StdClass {}
}
-
--EXPECTF--
Fatal error: Declaration of B::foo(): StdClass must be compatible with A::foo(): A in %s on line %d