8000 [3.0] Fixed DateTimeInterface comparison by francisbesset · Pull Request #18751 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[3.0] Fixed DateTimeInterface comparison #18751

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

Merged

Conversation

francisbesset
Copy link
Contributor
Q A
Branch? 3.0
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

DateTime class implements the DateTimeInterface.
It is useless to compare is a value is an instance of DateTime or DateTimeInterface.

Fixed DateTimeInterface comparaison
@HeahDude
Copy link
Contributor

I was working on that but then I proposed #18548 on 2.3 that should be merged first (if accepted) which would imply rebasing here. The other way leads to too much conflicts imo.

@javiereguiluz javiereguiluz changed the title [3.0] Fixed DateTimeInterface comparaison [3.0] Fixed DateTimeInterface comparison May 12, 2016
@fabpot
Copy link
Member
fabpot commented May 13, 2016

Thank you @francisbesset.

@fabpot fabpot merged commit 9a0bc99 into symfony:3.0 May 13, 2016
fabpot added a commit that referenced this pull request May 13, 2016
This PR was merged into the 3.0 branch.

Discussion
----------

[3.0] Fixed DateTimeInterface comparison

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

DateTime class implements the DateTimeInterface.
It is useless to compare is a value is an instance of DateTime or DateTimeInterface.

Commits
-------

9a0bc99 
6544
Fixed DateTimeInterface comparaison
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
0