summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71414.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug71414.phpt')
-rw-r--r--Zend/tests/bug71414.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Zend/tests/bug71414.phpt b/Zend/tests/bug71414.phpt
new file mode 100644
index 0000000000..09f8b7dd32
--- /dev/null
+++ b/Zend/tests/bug71414.phpt
@@ -0,0 +1,25 @@
+--TEST--
+Bug #71414 (Interface method override inherited method and implemented in a trait causes fatal error)
+--FILE--
+<?php
+interface InterfaceY {
+ public function z(): string;
+}
+
+trait TraitY {
+ public function z(): string {
+ }
+}
+
+class X {
+ public function z() {
+ }
+}
+
+class Y extends X implements InterfaceY {
+ use TraitY;
+}
+
+echo "ok";
+--EXPECT--
+ok