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
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)
Dec 31 2024, 11:36 PM
Unknown Object (File)
Dec 15 2024, 4:46 PM
Unknown Object (File)
Dec 5 2024, 7:18 PM
Unknown Object (File)
Nov 25 2024, 5:13 PM
Unknown Object (File)
Nov 20 2024, 2:29 AM
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.