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
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
Unknown Object (File)
Fri, May 3, 4:13 AM
Unknown Object (File)
Tue, Apr 30, 4:09 PM
Unknown Object (File)
Mon, Apr 29, 4:28 PM
Unknown Object (File)
Sat, Apr 27, 12:27 PM
Unknown Object (File)
Fri, Apr 26, 2:57 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.