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
F17741568: D14560.diff
Mon, Jul 21, 9:32 AM
Unknown Object (File)
Jun 9 2025, 3:00 AM
Unknown Object (File)
May 1 2025, 8:35 PM
Unknown Object (File)
Apr 5 2025, 4:58 PM
Unknown Object (File)
Mar 24 2025, 3:01 AM
Unknown Object (File)
Mar 6 2025, 1:31 PM
Unknown Object (File)
Mar 3 2025, 8:05 AM
Unknown Object (File)
Feb 19 2025, 10:13 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.