Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpFoundation][Cookie] Cookie DateTimeInterface fix#17370

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
wildewouter wants to merge6 commits intosymfony:2.3fromwildewouter:2.3
Closed

[HttpFoundation][Cookie] Cookie DateTimeInterface fix#17370

wildewouter wants to merge6 commits intosymfony:2.3fromwildewouter:2.3

Conversation

@wildewouter
Copy link
Contributor

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

I came across an issue with expiration times on cookies. They were not working with DateTimeImmutable but only the DateTime implementation itself. I refactored this to work with the DateTimeInterface.

Copy link
Contributor

Choose a reason for hiding this comment

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

this does not work on PHP 5.3

Copy link
Contributor

Choose a reason for hiding this comment

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

instanceof \DateTime || instanceof \DateTimeInterface

@wildewouterwildewouter changed the titleCookie DateTimeInterface fix[HttpFoundation][Cookie] Cookie DateTimeInterface fixJan 14, 2016
@wildewouter
Copy link
ContributorAuthor

Closed in favor of#17371

@xabbuh
Copy link
Member

Well, we could still additionally check forDateTimeImmutable instances on older Symfony versions.

Copy link
Contributor

Choose a reason for hiding this comment

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

@requires PHP 5.5 annotation

@xabbuh
Copy link
Member

👍

Status: Reviewed

@fabpot
Copy link
Member

Thank you@wildewouter.

@fabpotfabpot closed thisJan 14, 2016
fabpot added a commit that referenced this pull requestJan 14, 2016
…dewouter)This PR was squashed before being merged into the 2.3 branch (closes#17370).Discussion----------[HttpFoundation][Cookie] Cookie DateTimeInterface fix| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -I came across an issue with expiration times on cookies. They were not working with DateTimeImmutable but only the DateTime implementation itself. I refactored this to work with the DateTimeInterface.Commits-------f1f9754 [HttpFoundation][Cookie] Cookie DateTimeInterface fix
@fabpotfabpot mentioned this pull requestFeb 3, 2016
@wildewouterwildewouter deleted the 2.3 branchFebruary 3, 2016 13:55
This was referencedFeb 28, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@wildewouter@xabbuh@fabpot@Tobion@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp