Skip to content
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

[1.x] Fix PHP 8.2 compat issue in uses of DateTime::modify() #349

Closed
wants to merge 1 commit into from

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Dec 6, 2022

As noted in php/php-src#9950 there is a behavioral change in PHP 8.2 if you make a call like $dateTime->modify('+-300 seconds') as a result of another bug fix in the date/time handling libraries. As the bundle does not enforce TTLs to be a positive number (and the functional tests abuse this a bit), this is a practical fix to ensure anything passing a negative TTL value doesn't catastrophically break.

@mbabker mbabker mentioned this pull request Dec 6, 2022
4 tasks
@mbabker
Copy link
Contributor Author

mbabker commented Dec 6, 2022

Functional CI blocked by #348

Rebased and G2G

@mbabker mbabker changed the title Fix PHP 8.2 compat issue in uses of DateTime::modify() [1.x] Fix PHP 8.2 compat issue in uses of DateTime::modify() Dec 7, 2022
@shakaran
Copy link

@maxhelias any update missing for merge this to master? Compat with 8.2 is very important for next upgrades. Thanks

@maxhelias
Copy link
Contributor

@shakaran I am not the owner or a collaborator. Thanks

@shakaran
Copy link

@mbabker just pinging you in case that you can check this for quick merge. Thanks

@mbabker
Copy link
Contributor Author

mbabker commented Jan 12, 2023

I don't have merge rights here.

@shakaran
Copy link

I don't have merge rights here.

who has? By contributions maybe @markitosgv (composer author) or @paulchubatyy ?

@mbabker
Copy link
Contributor Author

mbabker commented Jun 28, 2023

Superseded by #361

@mbabker mbabker closed this Jun 28, 2023
@mbabker mbabker deleted the php-8.2-compat-fix branch June 28, 2023 15:44
@mbabker mbabker mentioned this pull request Jun 28, 2023
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.

4 participants