Page MenuHomePhabricator

Detect and correct "final private" methods in lint
ClosedPublic

Authored by epriestley on Feb 3 2021, 9:53 PM.
Tags
None
Referenced Files
F13275934: D21539.diff
Fri, May 31, 5:21 AM
F13269994: D21539.diff
Wed, May 29, 8:34 AM
F13221422: D21539.diff
Sun, May 19, 2:45 AM
F13203807: D21539.diff
Wed, May 15, 12:07 AM
F13186376: D21539.diff
Sat, May 11, 3:36 AM
Unknown Object (File)
Tue, May 7, 6:38 AM
Unknown Object (File)
Mon, May 6, 5:28 AM
Unknown Object (File)
Sat, May 4, 2:19 AM
Subscribers
None

Details

Summary

Ref T13588. Marking a method "final private" has never been meaningful, and is an error in PHP8.

Add static analysis to detect (and correct) this issue.

Test Plan

Added unit tests, will lint "phabricator/".

Diff Detail

Repository
rARC Arcanist
Branch
lint3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25085
Build 34614: Run Core Tests
Build 34613: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 3 2021, 10:14 PM
This revision was automatically updated to reflect the committed changes.