Page MenuHomePhabricator

Add a linter rule to determine whether a class should be marked as `abstract`
ClosedPublic

Authored by joshuaspence on Nov 23 2015, 8:57 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)
Dec 28 2024, 2:52 PM
Unknown Object (File)
Dec 7 2024, 11:37 AM
Unknown Object (File)
Dec 4 2024, 7:54 AM
Unknown Object (File)
Dec 1 2024, 3:15 PM
Unknown Object (File)
Nov 27 2024, 2:16 AM
Unknown Object (File)
Nov 23 2024, 9:24 AM
Subscribers

Details

Summary

A class containing abstract methods must itself be marked as abstract.

PHP Fatal error:  Class X contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (X::Y) in /home/josh/workspace/github.com/phacility/arcanist/test.php on line 5
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 to determine whether a class should be marked as `abstract`.
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, 8:57 PM
This revision was automatically updated to reflect the committed changes.