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

PHP 8.2 compatibility #7147

Merged
merged 4 commits into from
Dec 23, 2023
Merged

PHP 8.2 compatibility #7147

merged 4 commits into from
Dec 23, 2023

Conversation

alaca
Copy link
Member

@alaca alaca commented Dec 13, 2023

Resolves #7141

Description

This PR adds PHP 8.2 compatibility to Give Core, but it fails to do that 100% since we use packages that we can't update without bumping the min required PHP version for Give Core.

Packages that require updates:

moneyphp/money
Currently, we use v3.3.1 which throws notices running on servers that use PHP 8.2
To fix this we have to update this package to v4.0.0. The problem is that this version requires PHP ^8.0

myclabs/php-enum
Currently, we use v1.6 which throws notices running on servers that use PHP 8.2
To fix this we have to update this package to ^1.8.0. The problem is that this version requires PHP ^7.3

Affects

Give Core

Testing Instructions

Install Give on server that runs PHP 8.2
Enable WP_DEBUG and WP_DEBUG_LOG
Add donation forms
Make donations
Edit donors
Preview forms on frontend
Browse admin pages

Check if there are any notices inside the debug.log file related to Give core

Pre-review Checklist

  • Relevant @unreleased tags included in DocBlocks
  • Self Review of code and UX completed

@alaca alaca marked this pull request as draft December 13, 2023 19:09
@alaca alaca marked this pull request as ready for review December 18, 2023 10:27
Copy link
Member

@kjohnson kjohnson left a comment

Choose a reason for hiding this comment

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

Looks good to me.

As for the packages/dependencies, I think it is fine to merge these changes and address the dependencies at a later time. We can't control their notices and I certainly don't want to invest time to potentially replacing them over deprecated notices at this time.

@jonwaldstein jonwaldstein removed their request for review December 20, 2023 14:22
Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

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

Passed manual QA tests

@alaca alaca merged commit 179d6c4 into develop Dec 23, 2023
20 checks passed
@alaca alaca deleted the refactor/support-php-8.2-GIVE-162 branch December 23, 2023 05:18
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.

PHP 8.2 deprecation notices
3 participants