|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-23 23:05 UTC] derick@php.net
-Status: Open
+Status: Wont fix
[2010-03-23 23:05 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 19:00:01 2025 UTC |
Description: ------------ The function keyword is pretty deprecated in php atm. If you got a function inside a class people always refer to it as a 'method' and not a function. Besides that, there is actually no need for that keyword... class foo { public function foobar() {} } Is actually the same as: class foo { public foobar() {} } Should not be hard to understand that it's a function or method... I propose to either change the keyword to method or remove it completely Test script: --------------- <?php class foo { // old public function foobar() {} // suggestion 0 public method foobar() {} // suggestion 1 public foobar() {} }