-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] fix support for years outside of the 32b range on x86 arch #41394
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
Conversation
Q | A |
---|---|
Branch? | 4.4 |
Bug fix? | yes |
New feature? | no |
Deprecations? | no |
Tickets | - |
License | MIT |
Doc PR | - |
b0588de
to
ac4f715
Compare
@@ -118,7 +118,7 @@ public function testConsumeRememberMeCookieExpired() | |||
$this->tokenProvider->expects($this->any()) | |||
->method('loadTokenBySeries') | |||
->with('series1') | |||
->willReturn(new PersistentToken(InMemoryUser::class, 'wouter', 'series1', 'tokenvalue', new \DateTime('-'.(31536000 - 1).' years'))); | |||
->willReturn(new PersistentToken(InMemoryUser::class, 'wouter', 'series1', 'tokenvalue', new \DateTime('-'.(31536000 - 1).' months'))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @wouterj WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, seems like we can even make this '-'.(31536000 + 1).' seconds'
?
|
||
throw new MethodArgumentValueNotImplementedException(__METHOD__, 'timestamp', $timestamp, $message); | ||
} | ||
|
||
if (\is_string($timestamp) && $dt = \DateTime::createFromFormat('U', $timestamp)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be applied to the polyfills repo, right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, see symfony/polyfill#357