|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-10-27 20:02 UTC] tsteiner at nerdclub dot net
[2011-11-01 15:25 UTC] gron@php.net
[2011-11-01 15:26 UTC] gron@php.net
[2011-11-01 15:26 UTC] gron@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: gron
[2012-04-18 09:48 UTC] laruence@php.net
[2012-07-24 23:39 UTC] rasmus@php.net
[2013-11-17 09:35 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
Description: ------------ When an class implements an interface and then uses a method defined in a trait for the implementation, the prototype of the method is not enforced. Test script: --------------- <?php interface I { public function oneArgument($a); } trait T { public function oneArgument() {} } class C implements I { use T; } Expected result: ---------------- PHP Fatal error: Declaration of C::oneArgument() must be compatible with C::oneArgument($a) in test.php on line 11 Actual result: -------------- Script compiles and runs without error.