|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-30 08:20 UTC] requinix@php.net
-Status: Open
+Status: Wont fix
[2017-03-30 08:20 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
Description: ------------ Can we separate namespace of static member and non-static member. So we can declare static and non-static member with same name. Test script: --------------- class Foo { public function bar() { echo 'This is a non-static method.'; } static public function bar() { echo 'This is a static method.'; } } // What we want Foo::bar(); // echoes 'This is a static method.' (new Foo)->bar(); // echoes 'This is a non-static method.' // Actually happens Fatal error: Cannot redeclare Foo::bar() been thrown.