Home GnuPG

Add a linter rule for `interface` method bodies
8183a458048cUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Add a linter rule for interface method bodies

Summary:
interface methods cannot contain a body. This construct will cause a fatal error:

PHP Fatal error:  Interface 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/D14561

Details

Event Timeline

Joshua Spence <josh@freelancer.com> committed rARC8183a458048c: Add a linter rule for `interface` method bodies (authored by Joshua Spence <josh@freelancer.com>).Nov 25 2015, 9:12 PM