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

Move constants to constant only classes. #672

Merged
merged 1 commit into from
May 12, 2018
Merged

Move constants to constant only classes. #672

merged 1 commit into from
May 12, 2018

Conversation

jwage
Copy link
Member

@jwage jwage commented May 12, 2018

Q A
Type change
BC Break yes
Fixed issues #628

Summary

Implement constant only classes to match the other Doctrine projects.

@jwage jwage added the BC Break label May 12, 2018
@jwage jwage added this to the 2.0 milestone May 12, 2018
@jwage jwage self-assigned this May 12, 2018
@jwage jwage requested a review from Majkl578 May 12, 2018 02:03
final class VersionDirection
{
public const DIRECTION_UP = 'up';
public const DIRECTION_DOWN = 'down';
Copy link
Contributor

Choose a reason for hiding this comment

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

VersionDirection::UP + VersionDirection::DOWN is imho the way we want to go.


final class VersionState
{
public const STATE_NONE = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

dtto here, without STATE_

@jwage jwage force-pushed the const-refactoring branch from 5f88aeb to 5b4a29f Compare May 12, 2018 02:12
@jwage jwage requested a review from Majkl578 May 12, 2018 02:13
@jwage jwage merged commit ead7322 into master May 12, 2018
@jwage jwage deleted the const-refactoring branch May 12, 2018 02:20
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.

2 participants