Skip to content

fix: Remove deprecated RFC7231 constant to avoid warnings on PHP 8.5#58201

Open
DerDreschner wants to merge 1 commit intomasterfrom
fix/remove-deprecated-rfc7231-constant
Open

fix: Remove deprecated RFC7231 constant to avoid warnings on PHP 8.5#58201
DerDreschner wants to merge 1 commit intomasterfrom
fix/remove-deprecated-rfc7231-constant

Conversation

@DerDreschner
Copy link

@DerDreschner DerDreschner commented Feb 9, 2026

Summary

Since PHP 8.5, the RFC7231 constant is being deprecated (see PHP wiki). This produces deprecation warnings in several cases (in my case: when running the Mail app unit tests).

PHP Deprecated: Constant DateTimeInterface::RFC7231 is deprecated since 8.5, as this format ignores the associated timezone and always uses GMT in /var/www/html/lib/public/AppFramework/Http/Response.php on line 101

To fix that, I replaced the constant with the value that's being used instead. This should be fine as we rely on GMT anyway here. If not, please let me know!

Checklist

Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@DerDreschner DerDreschner requested a review from a team as a code owner February 9, 2026 15:36
@kesselb
Copy link
Contributor

kesselb commented Feb 9, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants