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
F19505388: D14561.id35259.diff
Fri, Jan 9, 11:22 AM
F19503959: D14561.id35219.diff
Fri, Jan 9, 2:51 AM
F19344099: D14561.diff
Fri, Dec 26, 12:26 AM
F19005122: D14561.id35219.diff
Nov 21 2025, 2:01 PM
F18712871: D14561.id.diff
Sep 29 2025, 5:33 AM
F18625170: D14561.id35219.diff
Sep 15 2025, 10:08 PM
F18623996: D14561.id.diff
Sep 15 2025, 6:23 PM
F18619005: D14561.id35259.diff
Sep 15 2025, 1:30 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.