]> khamidou — GitHub mirrors - arcanist.git/commit
Lint short ternary as PHP 5.3 feature
authorvrana <jakubv@fb.com>
Thu, 13 Sep 2012 18:19:25 +0000 (11:19 -0700)
committervrana <jakubv@fb.com>
Thu, 13 Sep 2012 18:24:32 +0000 (11:24 -0700)
commit7ee0f3e3b31cdec790d0b0025d895d0123d43334
tree9e85c48ea4dd1d2d7d51ce866ac1a10e02953b01
parenta5e2f819289d4a3d4a015a7c067d164050dddf21
Lint short ternary as PHP 5.3 feature

Summary: I don't offer a replacement because `f() ?: 1` converted to `f() ? f() : 1` can cause side effects and whitespace issues.

Test Plan: New test.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3489
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/php53.lint-test