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

[Kernel] Integer version constants #15729

Merged
merged 1 commit into from
Sep 9, 2015
Merged

Conversation

Tobion
Copy link
Member

@Tobion Tobion commented Sep 8, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

The idea of these constants is that they can be compared without using version_compare. But we want them to be compared as integers not as strings (it worked before as well because of php type juggling). They are integers semantically.

@Tobion Tobion changed the title [Kernel] Integer version constants to be comparable numerically [Kernel] Integer version constants Sep 8, 2015
@xabbuh
Copy link
Member

xabbuh commented Sep 8, 2015

👍

Status: Reviewed

@fabpot
Copy link
Member

fabpot commented Sep 9, 2015

Thank you @Tobion.

@fabpot fabpot merged commit 4b45bb9 into symfony:2.3 Sep 9, 2015
fabpot added a commit that referenced this pull request Sep 9, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

[Kernel] Integer version constants

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

The idea of these constants is that they can be compared without using version_compare. But we want them to be compared as integers not as strings (it worked before as well because of php type juggling). They are integers semantically.

Commits
-------

4b45bb9 Kernel version constants are integers to actually be comparable numerically
@Tobion Tobion deleted the kernel-const-int branch September 9, 2015 09:56
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.

4 participants