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

BCTokens: change property visibility #139

Merged
merged 1 commit into from
May 28, 2020

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 28, 2020

⚠️ Breaking Change ⚠️

The $phpcsCommentTokensTypes, $ooScopeTokens, $textStringTokens properties all had protected visibility.

These properties are not intended to be used directly by implementing standards and with them being protected, they would only be accessible if the implementing standard would extend the BCTokens class, which doesn't really make sense as it only contains static method anyhow.

So to make the intention clearer, these have now all be reclassified as private properties.

⚠️ Breaking Change ⚠️

The `$phpcsCommentTokensTypes`, `$ooScopeTokens`, `$textStringTokens` properties all had `protected` visibility.

These properties are not intended to be used directly by implementing standards and with them being `protected`, they would only be accessible if the implementing standard would extend the `BCTokens` class, which doesn't really make sense as it only contains static method anyhow.

So to make the intention clearer, these have now all be reclassified as `private` properties.
@jrfnl jrfnl added this to the 1.0.0-alpha3 milestone May 28, 2020
@jrfnl jrfnl merged commit fc924ab into develop May 28, 2020
@jrfnl jrfnl deleted the feature/bctokens-change-property-visibility branch May 28, 2020 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant