Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply constants visibility #1511

Closed

Conversation

samsonasik
Copy link
Member

Since php 7.1, constant in class can have visibility

Checklist:

  • Securely signed commits

*
* @const string
*/
const CHAR_SUB_DELIMS = '!\$&\'\(\)\*\+,;=';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this contant never used (yet), so I removed it.

@lonnieezell
Copy link
Member

This is redundant. The default visibility of a constant is public. We never use protected or private constants.

@samsonasik samsonasik deleted the constant-visibility branch November 20, 2018 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants