Home GnuPG

Explicitly enumerate PHP magic methods
a70a00a960ffUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Explicitly enumerate PHP magic methods

Summary: 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.

Test Plan:

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 }

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10539

Details

Provenance
Joshua Spence <josh@joshuaspence.com>Authored on Sep 23 2014, 12:02 AM
Parents
rARC670dccee47aa: Minor reordering of functions
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rARCa70a00a960ff: Explicitly enumerate PHP magic methods (authored by Joshua Spence <josh@joshuaspence.com>).Sep 23 2014, 12:02 AM