Page MenuHomePhabricator

Add a linter rule for self member references
ClosedPublic

Authored by joshuaspence on Apr 12 2015, 12:59 PM.
Tags
None
Referenced Files
F18840253: D12370.id29713.diff
Oct 27 2025, 10:49 PM
F18810641: D12370.id.diff
Oct 19 2025, 10:39 PM
F18770413: D12370.id29698.diff
Oct 8 2025, 12:24 PM
F18759248: D12370.id.diff
Oct 6 2025, 2:40 AM
F18745441: D12370.diff
Oct 3 2025, 6:50 AM
F18657046: D12370.id29714.diff
Sep 23 2025, 12:20 AM
F18567663: D12370.diff
Sep 9 2025, 4:03 PM
F18247248: D12370.id29713.diff
Aug 21 2025, 12:18 PM
Subscribers

Details

Summary

Ref T7409. Adds a linter rule for the following:

  • self:: is used instead of Self::.
  • self:: is used for local static member reference.
  • self:: is used instead of self ::.

Based on Squiz_Sniffs_Classes_SelfMemberReferenceSniff.

Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for self member references.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Apr 12 2015, 1:00 PM
This revision was automatically updated to reflect the committed changes.