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
F19560811: D14559.id35214.diff
Sat, Jan 31, 8:45 AM
F18819445: D14559.id.diff
Oct 22 2025, 6:24 AM
F18774017: D14559.diff
Oct 9 2025, 2:21 PM
F18712867: D14559.id.diff
Sep 29 2025, 5:33 AM
F18085346: D14559.diff
Aug 5 2025, 7:09 PM
Unknown Object (File)
Mar 31 2025, 9:28 AM
Unknown Object (File)
Mar 28 2025, 8:00 AM
Unknown Object (File)
Mar 23 2025, 2:28 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.