HomePhabricator

Add a linter rule for `abstract private` methods

Description

Add a linter rule for abstract private methods

Summary:
Methods cannot be marked as both abstract and private. This language construct will cause a fatal error:

PHP Fatal error:  Abstract function X::Y() cannot be declared private in /home/josh/workspace/github.com/phacility/arcanist/test.php on line 4

Test Plan: Added unit tests.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin

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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Nov 23 2015, 9:25 PM
Reviewer
Blessed Reviewers
Differential Revision
D14558: Add a linter rule for `abstract private` methods
Parents
rARC6f908f633b7f: Add a linter rule for unnecessary symbol aliases
Branches
Unknown
Tags
Unknown
Build Status
Buildable 9031
Build 10615: Run Core Tests