|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-05-23 12:40 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Package: *General Issues
+Package: Scripting Engine problem
[2018-05-23 12:40 UTC] cmb@php.net
[2021-06-30 14:27 UTC] cmb@php.net
-Status: Verified
+Status: Duplicate
-Assigned To:
+Assigned To: cmb
[2021-06-30 14:27 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
Description: ------------ PHP does not restrict extension of two interfaces that have conflicting methods if extension is made right-to-left. Test script: --------------- interface Foo { public function test(array $x, $y=0); } interface Bar { public function test(array $x, $y); } interface Baz extends Foo, Bar {} //however, this will fail with expected fatal error: //interface Baz extends Bar, Foo {} Expected result: ---------------- Fatal error: Declaration of Bar::test() must be compatible with Actual result: -------------- All goes well. No error happened.