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
F19157054: D21539.id51271.diff
Sat, Dec 13, 3:55 AM
F19104302: D21539.id51274.diff
Fri, Dec 5, 1:22 PM
F19046617: D21539.id51274.diff
Thu, Nov 27, 11:09 AM
F19000453: D21539.id51271.diff
Nov 20 2025, 11:43 PM
F18999481: D21539.id51271.diff
Nov 20 2025, 9:07 PM
F18725024: D21539.diff
Sep 30 2025, 4:39 AM
F18722786: D21539.id.diff
Sep 29 2025, 11:25 PM
F18656798: D21539.id51271.diff
Sep 22 2025, 11:28 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.