]> khamidou — GitHub mirrors - arcanist.git/commit
Minor improvement for array value linter rule
authorJoshua Spence <josh@joshuaspence.com>
Mon, 10 Aug 2015 21:55:11 +0000 (07:55 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 10 Aug 2015 21:55:11 +0000 (07:55 +1000)
commit504ff426818898a25c13a597392c7451e73a447e
treeedb62eb9f7b024bcaab2ff67db50d0004b356b5a
parent830bcbc2a5e9ccc724e80ba878f61d71c6590ae0
Minor improvement for array value linter rule

Summary:
This linter rule fails on multi-line arrays with no whitespace before the first array value. Specifically, the following exception is thrown:

```
Fatal error: Call to a member function isAnyWhitespace() on boolean in arcanist/src/lint/linter/xhpast/rules/ArcanistArrayValueXHPASTLinterRule.php on line 40
```

Test Plan: Added another test case.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D13856
src/lint/linter/__tests__/xhpast/array-value.lint-test
src/lint/linter/xhpast/rules/ArcanistArrayValueXHPASTLinterRule.php