]> granicus.if.org Git - php/commitdiff
Revert "Added tests demonstrating the same effect with abstracts"
authorJoe Watkins <krakjoe@php.net>
Wed, 1 Feb 2017 18:33:47 +0000 (18:33 +0000)
committerJoe Watkins <krakjoe@php.net>
Wed, 1 Feb 2017 18:33:47 +0000 (18:33 +0000)
This reverts commit c11b2b809d349399c8f4b54c6bf24078dece455e.

Zend/tests/bug73987.phpt
Zend/tests/bug73987_1.phpt
Zend/tests/bug73987_2.phpt [deleted file]
Zend/tests/bug73987_3.phpt [deleted file]

index 610b594a6442440f12b28b5dac8c88fbac1d0643..551565650c8c9df7a57b7bc80ae9bcb690894013 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #73987 (Method compatibility check looks to original definition and not parent - nullability interface)
+Bug #73987 (Method compatibility check looks to original definition and not parent)
 --FILE--
 <?php
 
index 010987ea5f67164dce78a9caba7f3f0fa6440a8c..6a0a157f29a150339e87de7f248bc787af3418cf 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Bug #73987 (Method compatibility check looks to original definition and not parent - return types interface)
+Bug #73987 (Method compatibility check looks to original definition and not parent)
 --FILE--
 <?php
 
diff --git a/Zend/tests/bug73987_2.phpt b/Zend/tests/bug73987_2.phpt
deleted file mode 100644 (file)
index a70f145..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #73987 (Method compatibility check looks to original definition and not parent - nullabilty abstract)
---FILE--
-<?php
-
-abstract class A {
-    abstract function example($a, $b, $c);
-}
-
-class B extends A {
-    function example($a, $b = null, $c = null) { }
-}
-
-class C extends B {
-    function example($a, $b, $c = null) { }
-}
-
-?>
---EXPECTF--
-Fatal error: Declaration of C::example($a, $b, $c = NULL) must be compatible with B::example($a, $b = NULL, $c = NULL) in %s
diff --git a/Zend/tests/bug73987_3.phpt b/Zend/tests/bug73987_3.phpt
deleted file mode 100644 (file)
index 89e4686..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #73987 (Method compatibility check looks to original definition and not parent - return types abstract)
---FILE--
-<?php
-
-abstract class A {
-    abstract function example();
-}
-
-class B extends A {
-    function example(): int  { }
-}
-
-class C extends B {
-    function example(): string { }
-}
-
-?>
---EXPECTF--
-Fatal error: Declaration of C::example(): string must be compatible with B::example(): int in %s