Page MenuHomePhabricator

Add a linter rule for `abstract` methods within an `interface`
ClosedPublic

Authored by joshuaspence on Nov 23 2015, 9:24 PM.
Tags
None
Referenced Files
F18712874: D14562.id.diff
Mon, Sep 29, 5:33 AM
F18603809: D14562.id35260.diff
Sep 13 2025, 5:39 PM
F18595346: D14562.id.diff
Sep 12 2025, 9:22 PM
F18588478: D14562.id.diff
Sep 12 2025, 12:25 AM
F18085349: D14562.diff
Aug 5 2025, 7:10 PM
F17630234: D14562.diff
Jul 10 2025, 10:31 AM
Unknown Object (File)
Jul 7 2025, 4:11 AM
Unknown Object (File)
Jun 17 2025, 5:06 AM
Subscribers

Details

Summary

interfaces cannot contain abstract methods. This construct will cause a PHP fatal error:

Access type for interface method SomeInterface::someMethod() must be omitted
Test Plan

Added test cases.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 9029
Build 10613: Run Core Tests
Build 10612: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for `abstract` methods within an `interace`.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Nov 25 2015, 2:57 PM
epriestley retitled this revision from Add a linter rule for `abstract` methods within an `interace` to Add a linter rule for `abstract` methods within an `interface`.Nov 25 2015, 3:07 PM
epriestley edited edge metadata.
This revision was automatically updated to reflect the committed changes.