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
F15459058: D14559.id.diff
Mon, Mar 31, 9:28 AM
F15448977: D14559.id35223.diff
Fri, Mar 28, 8:00 AM
F15425097: D14559.id35214.diff
Sun, Mar 23, 2:28 AM
F15402761: D14559.id35214.diff
Mar 18 2025, 12:13 AM
F15391227: D14559.id35214.diff
Mar 15 2025, 8:52 AM
F15331780: D14559.diff
Mar 7 2025, 1:37 PM
F15283112: D14559.diff
Mar 4 2025, 5:25 AM
Unknown Object (File)
Jan 29 2025, 10:36 PM
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.