]> khamidou — GitHub mirrors - arcanist.git/commit
Lint against undefined magic symbols
authorJoshua Spence <josh@joshuaspence.com>
Wed, 14 Jan 2015 19:55:45 +0000 (06:55 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 14 Jan 2015 19:55:45 +0000 (06:55 +1100)
commit7aa89ddf96209b53b0812b6ef4ba4ebfbdbf3379
tree001cda5837f18570440b3c5b63a1dfd931815cab
parentbb8e9d7357a6417bf7231abd64f2bf33b8f8fbc2
Lint against undefined magic symbols

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.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T5639

Differential Revision: https://secure.phabricator.com/D11386
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/php53-features.lint-test