summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/bug71978.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/return_types/bug71978.phpt')
-rw-r--r--Zend/tests/return_types/bug71978.phpt10
1 files changed, 1 insertions, 9 deletions
diff --git a/Zend/tests/return_types/bug71978.phpt b/Zend/tests/return_types/bug71978.phpt
index e3c8440212..cfe8905dec 100644
--- a/Zend/tests/return_types/bug71978.phpt
+++ b/Zend/tests/return_types/bug71978.phpt
@@ -2,12 +2,6 @@
Bug #71978 (Existence of return type hint affects other compatibility rules)
--FILE--
<?php
-class A {
- function foo(int $a) {}
-}
-class B extends A {
- function foo(string $a) {}
-}
class A1 {
function foo(int $a): int {}
}
@@ -16,6 +10,4 @@ class B1 extends A1 {
}
?>
--EXPECTF--
-Warning: Declaration of B::foo(string $a) should be compatible with A::foo(int $a) in %s on line %d
-
-Warning: Declaration of B1::foo(string $a): int should be compatible with A1::foo(int $a): int in %s on line %d
+Fatal error: Declaration of B1::foo(string $a): int must be compatible with A1::foo(int $a): int in %s on line %d