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

[REF][PHP8.2] Use const instead of dynamic property: CRM_Contribute_BAO_ContributionPageTest #25372

Merged

Conversation

braders
Copy link
Contributor

@braders braders commented Jan 18, 2023

Overview

Use const instead of dynamic property in CRM_Contribute_BAO_ContributionPageTest

Before

A dynamic property was being used to ensure a consistent ID was used across tests. Dynamic properties are deprecated in PHP8.2 The value was hardcoded and never changed.

After

Use a const instead, this text will run cleanly on PHP 8.2

Comments

It's a test so backwards compatiability risk is very low.

@civibot
Copy link

civibot bot commented Jan 18, 2023

(Standard links)

@civibot civibot bot added the master label Jan 18, 2023
@totten
Copy link
Member

totten commented Jan 18, 2023

Test failure is unrelated.

@totten totten merged commit 1073951 into civicrm:master Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants