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
F22662796: D21539.id51274.diff
Thu, Oct 1, 10:32 AM
F22627416: D21539.id51274.diff
Tue, Sep 29, 10:08 PM
Unknown Object (File)
Aug 30 2026, 10:21 PM
Unknown Object (File)
Aug 21 2026, 5:10 AM
Unknown Object (File)
Jul 30 2026, 2:29 AM
Unknown Object (File)
Jul 2 2026, 7:04 PM
Unknown Object (File)
Jun 18 2026, 12:20 AM
Unknown Object (File)
Jun 12 2026, 1:58 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
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.