For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > November 2007 > Re: [PEAR-QA] private methods require an underscore









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-QA] private methods require an underscore
Christian Weiske

2007-11-25, 4:22 am

Greg Sherwood

2007-11-25, 4:22 am

Christian Weiske wrote:
> The manual states:
>
> The PEAR CS were written when PHP5 did not exist. The above statement
> is wrong now, PHP5 does support visibility modificators.
> So in my eyes, PHPCS should not tell that private method need to be
> prefixed in PHP versions that "support truly-enforceable private
> namespaces" - which is php5.
>

I just try to enforce the documented coding standards because I
shouldn't be deciding what is right and wrong with them. If PEAR decides
that private methods no longer need underscores in PHP5 scripts, I'll be
happy to make the change to PHP_CodeSniffer.

Greg

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com