Page MenuHomePhabricator

Lint against undefined magic symbols
ClosedPublic

Authored by joshuaspence on Jan 14 2015, 11:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 15 2026, 1:33 PM
Unknown Object (File)
Feb 15 2026, 12:59 PM
Unknown Object (File)
Jan 31 2026, 12:06 PM
Unknown Object (File)
Oct 5 2025, 2:28 AM
Unknown Object (File)
Sep 26 2025, 7:06 AM
Unknown Object (File)
Sep 22 2025, 11:19 PM
Unknown Object (File)
Sep 19 2025, 7:15 AM
Unknown Object (File)
Sep 19 2025, 5:13 AM
Subscribers

Details

Summary

Fixes T5639. Allows the detection of undefined magic symbols, such as the use of __DIR__ in a codebase that targets < PHP 5.3.0.

Test Plan

Added a test case.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Lint against undefined magic symbols.
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.Jan 14 2015, 2:00 PM
This revision was automatically updated to reflect the committed changes.