|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-03 15:01 UTC] laruence@php.net
[2015-03-03 15:09 UTC] sebastian@php.net
[2018-01-15 11:42 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2018-01-15 11:42 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 05:00:01 2026 UTC |
Description: ------------ The error message for "trait extends trait" is wrong. Test script: --------------- <?php trait t1 { } trait t2 extends t1 { } Expected result: ---------------- PHP Fatal error: A trait (t2) cannot extend a trait. Traits can only be composed from other traits with the 'use' keyword. Error in /home/sb/test.php on line 7 Actual result: -------------- PHP Fatal error: A trait (t2) cannot extend a class. Traits can only be composed from other traits with the 'use' keyword. Error in /home/sb/test.php on line 7