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] Declare property in CRM_Contact_Form_DedupeFind #25834

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

braders
Copy link
Contributor

@braders braders commented Mar 15, 2023

Overview

Declare property in CRM_Contact_Form_DedupeFind.

Before

$rgid declared as a dynamic property. Dynamic properties are deprecated in PHP 8.2.

After

Property declared.

Technical Details

Technically speaking this is a breaking change as we've now made rgid protected, and an extension could be reading it via a hook like https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess/. That said, in this case I think the chance of an extension being impacted is very small. It's also easy for an impacted extension to just read the value directly from CRM_Utils_Request::retrieve('rgid', 'Positive', $this, FALSE, 0); if needed.

@civibot
Copy link

civibot bot commented Mar 15, 2023

(Standard links)

@eileenmcnaughton
Copy link
Contributor

Yep agree - I don't think extensions should be treating every property or function as available to them.

@eileenmcnaughton eileenmcnaughton merged commit b5b7615 into civicrm:master Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants