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
Unknown Object (File)
May 9 2025, 12:37 PM
Unknown Object (File)
Apr 24 2025, 12:54 AM
Unknown Object (File)
Apr 17 2025, 8:19 AM
Unknown Object (File)
Mar 28 2025, 6:50 AM
Unknown Object (File)
Mar 28 2025, 2:27 AM
Unknown Object (File)
Mar 25 2025, 4:38 AM
Unknown Object (File)
Mar 24 2025, 4:46 AM
Unknown Object (File)
Mar 23 2025, 4:55 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.