|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-11-04 07:55 UTC] cmb@php.net
-Status: Open
+Status: Verified
-Package: PHP Language Specification
+Package: Scripting Engine problem
[2019-11-04 07:55 UTC] cmb@php.net
[2019-11-05 13:17 UTC] rowan dot collins at gmail dot com
[2019-12-18 14:50 UTC] nikic@php.net
-Summary: Abstract method implementation in trait
+Summary: Abstract method implementation from trait
does not check "static"
-Assigned To:
+Assigned To: nikic
[2019-12-18 14:56 UTC] nikic@php.net
[2019-12-18 14:56 UTC] nikic@php.net
-Status: Verified
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 19:00:01 2025 UTC |
Description: ------------ abstract methods should be implemented by child class and should not be static but when the implementation comes from a trait it cloud be static and code continue running without any problem. Test script: --------------- <?php abstract class A { abstract public function createApp(); } class B extends A { use C; } trait C { public static function createApp() { echo "You should not be here"; } } B::createApp(); Expected result: ---------------- Error for not implementing abstract method