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
F15383465: D21539.id51271.diff
Fri, Mar 14, 4:48 PM
F15382274: D21539.diff
Fri, Mar 14, 11:37 AM
F15380654: D21539.diff
Fri, Mar 14, 3:59 AM
F15357802: D21539.diff
Tue, Mar 11, 6:57 AM
Unknown Object (File)
Mon, Feb 24, 2:08 AM
Unknown Object (File)
Fri, Feb 21, 3:54 AM
Unknown Object (File)
Feb 16 2025, 6:58 PM
Unknown Object (File)
Feb 16 2025, 4:36 PM
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.