Ref T13249. We currently allow if (function_exists('X')) { X(); } but not if (defined('X')) { X; }. Allow the latter.
Details
Details
- Reviewers
amckinley - Maniphest Tasks
- T13249: 2019 Week 7 - 10 Bonus Content
- Commits
- rARC7e61e43f6554: Add version check whitelists for constants to the version compatibility lint…
See D20145, which linted clean with this patch in place.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/lint/linter/__tests__/jshint/jshint.lint-test | ||
---|---|---|
12 | This is unrelated, reflects a behavioral change in newer versions of jshint. |