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)
Wed, Jan 29, 10:36 PM
Unknown Object (File)
Wed, Jan 29, 10:36 PM
Unknown Object (File)
Wed, Jan 29, 10:36 PM
Unknown Object (File)
Wed, Jan 29, 10:36 PM
Unknown Object (File)
Mon, Jan 27, 2:44 AM
Unknown Object (File)
Dec 27 2024, 4:05 PM
Unknown Object (File)
Dec 26 2024, 6:40 PM
Unknown Object (File)
Dec 19 2024, 12: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.