-
-
Notifications
You must be signed in to change notification settings - Fork 149
#2024 - Fixed deprecation warning for DateTimeInterface::RFC7231 #2025
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
| if ('RFC822' === $format) { | ||
| $variable .= '->setTimezone(new \\DateTimeZone("GMT"))'; | ||
| $format = 'RFC7231'; | ||
| // Use RFC1123 instead of deprecated RFC7231 constant (PHP 8.5+) |
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.
\DateTimeInterface::RFC1123 is identical to \DateTimeInterface::RFC822.
Which encodes GMT's timezone in +0000 and was an issue for MinIO (#1213)
We used RFC7231 instead of RFC822 in a similar way to the official PHP sdk.
If the constant is deprecated, then I suggest returning $variable . '->format(\'D, d M Y H:i:s \G\M\T\')';
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.
ok, I can do that
| final class DataType | ||
| { | ||
| public const FLOAT_32 = 'float32'; | ||
| public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK'; |
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.
We be fixed in a dedicated PR #2026
|
could you please rebase your PR, to fix issue with |
|
@jderusse let me know if this fix works for you, thanks! |
|
thank you @deluxetom |
DateTimeInterface::RFC7231#2024Fix PHP 8.5 deprecation warning for
DateTimeInterface::RFC7231constant by usingRFC1123instead.