Home GnuPG

Add a linter rule for `abstract` methods containing a body
72d9013d29dcUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Add a linter rule for abstract methods containing a body

Summary:
abstract methods cannot contain a body.

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

Test Plan: Added unit tests.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

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

Details

Event Timeline

Joshua Spence <josh@freelancer.com> committed rARC72d9013d29dc: Add a linter rule for `abstract` methods containing a body (authored by Joshua Spence <josh@freelancer.com>).Nov 23 2015, 10:19 PM