Page MenuHomePhabricator

Write a linter rule to determine appropriate constant definitions
Open, WishlistPublic

Description

In PHP, constants can be defined either with const or define(). I think that const should be used whenever possible (i.e. where the constant value is not an expression), otherwise define() should be used.

Event Timeline

joshuaspence claimed this task.
joshuaspence raised the priority of this task from to Wishlist.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Lint.
joshuaspence added a subscriber: joshuaspence.
joshuaspence renamed this task from Write a linter rule to de to Write a linter rule to determine appropriate constant definitions.Mar 1 2015, 9:52 PM