Explicitly list PHP magic methods (methods beginning with __) instead of assuming that all methods beginning with __ are okay in terms of naming conventions. These magic methods were obtained from http://us1.php.net/manual/en/language.oop5.magic.php.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rARCa70a00a960ff: Explicitly enumerate PHP magic methods
Warning (XHP9) Naming Conventions Follow naming conventions: methods should be named using lowerCamelCase. 1 <?php 2 3 class Foo { >>> 4 function __foo() {} 5 6 function _bar() {} 7 } Warning (XHP9) Naming Conventions Follow naming conventions: methods should be named using lowerCamelCase. 3 class Foo { 4 function __foo() {} 5 >>> 6 function _bar() {} 7 }
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Lint
Lint Not Applicable - Unit
Tests Not Applicable