Page MenuHomePhabricator

Improve PHP compatibility linter
ClosedPublic

Authored by joshuaspence on Aug 10 2015, 10:06 AM.
Tags
None
Referenced Files
F19276820: D13841.diff
Tue, Dec 23, 1:22 AM
F19066676: D13841.id.diff
Sun, Nov 30, 5:54 AM
F18868804: D13841.id.diff
Nov 4 2025, 8:37 AM
F18765290: D13841.id33440.diff
Oct 7 2025, 10:35 AM
F18757453: D13841.id33422.diff
Oct 5 2025, 5:29 PM
F18712670: D13841.id.diff
Sep 29 2025, 5:30 AM
F18672840: D13841.diff
Sep 25 2025, 8:24 AM
F18647843: D13841.id.diff
Sep 19 2025, 2:56 PM
Subscribers

Details

Summary

Ref T8674. Adds to ArcanistPHPCompatibilityXHPASTLinterRule such that an error is raised whenever self or $this is used in an anonymous closure prior to PHP 5.4.

Test Plan

Added test cases.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Improve PHP compatibility linter.
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.Aug 10 2015, 1:29 PM
This revision was automatically updated to reflect the committed changes.