Page MenuHomePhabricator

Add a linter rule for `interface` method bodies
ClosedPublic

Authored by joshuaspence on Nov 23 2015, 9:13 PM.
Tags
None
Referenced Files
F14029521: D14561.id35259.diff
Fri, Nov 8, 8:46 PM
F14029520: D14561.id35219.diff
Fri, Nov 8, 8:46 PM
F14029194: D14561.id.diff
Fri, Nov 8, 7:58 PM
F14029193: D14561.diff
Fri, Nov 8, 7:58 PM
F14004631: D14561.diff
Sun, Oct 27, 12:07 AM
F13986150: D14561.diff
Mon, Oct 21, 12:59 AM
F13979506: D14561.diff
Sat, Oct 19, 4:57 AM
F13979494: D14561.id.diff
Sat, Oct 19, 4:54 AM
Subscribers

Details

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.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for `interface` method bodies.
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, 3:07 PM
This revision was automatically updated to reflect the committed changes.