Page MenuHomePhabricator

Add a linter rule for `abstract` methods containing a body
ClosedPublic

Authored by joshuaspence on Nov 23 2015, 9:05 PM.
Tags
None
Referenced Files
F15312058: D14560.id35218.diff
Thu, Mar 6, 1:31 PM
Unknown Object (File)
Mon, Mar 3, 8:05 AM
Unknown Object (File)
Wed, Feb 19, 10:13 PM
Unknown Object (File)
Jan 29 2025, 10:36 PM
Unknown Object (File)
Jan 29 2025, 10:36 PM
Unknown Object (File)
Jan 29 2025, 10:36 PM
Unknown Object (File)
Dec 31 2024, 11:36 PM
Unknown Object (File)
Dec 15 2024, 4:46 PM
Subscribers

Details

Summary

abstract methods cannot contain a body.

PHP Fatal error:  Abstract 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 `abstract` methods containing a body.
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 23 2015, 9:09 PM
This revision was automatically updated to reflect the committed changes.