Ref T8674. Adds to ArcanistPHPCompatibilityXHPASTLinterRule such that an error is raised whenever self or $this is used in an anonymous closure prior to PHP 5.4.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T8674: ArcanistClassNameLiteralXHPASTLinterRule can produce incorrect results
- Commits
- rARCf43b74c6052f: Improve PHP compatibility linter
Added test cases.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- master
- Lint
Lint Passed Severity Location Code Message Auto-Fix src/lint/linter/__tests__/xhpast/php54-features.lint-test:15 TXT6 Trailing Whitespace - Unit
Test Failures - Build Status
Buildable 7557 Build 8154: [Placeholder Plan] Wait for 30 Seconds Build 8153: arc lint + arc unit
Time | Test | |
---|---|---|
2,366 ms | ArcanistJSHintLinterTestCase::Unknown Unit Message (" |