]> khamidou — GitHub mirrors - arcanist.git/commit
Fix another edge case for "function call should be type cast" linter rule
authorJoshua Spence <josh@freelancer.com>
Wed, 2 Dec 2015 03:13:11 +0000 (14:13 +1100)
committerJoshua Spence <josh@freelancer.com>
Wed, 2 Dec 2015 03:13:11 +0000 (14:13 +1100)
commit76ae02325dd3aa516b01263da53f7ad0ee123ff7
tree1f8574f466dc74061ec5806df48547b7e6053bda
parent09052d52470d12eb395fab0dbe4e0d1da56d8765
Fix another edge case for "function call should be type cast" linter rule

Summary: Fix a minor issue in which changing a function call to a type cast affects the result of an expression.

Test Plan: Added test case.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14623
src/lint/linter/xhpast/rules/ArcanistFunctionCallShouldBeTypeCastXHPASTLinterRule.php
src/lint/linter/xhpast/rules/__tests__/function-call-should-be-type-cast/binary-expression.lint-test [new file with mode: 0644]