Skip to content

Remove calls to deprecated CRM_Utils_Array::value#84

Open
colemanw wants to merge 1 commit into
webaccess:masterfrom
colemanw:noUtilsArrayValue
Open

Remove calls to deprecated CRM_Utils_Array::value#84
colemanw wants to merge 1 commit into
webaccess:masterfrom
colemanw:noUtilsArrayValue

Conversation

@colemanw
Copy link
Copy Markdown

Replaces deprecated function with equivalent null-coalescing operator. Behavior should be the same before/after.

@colemanw colemanw force-pushed the noUtilsArrayValue branch from a33fb9f to e2d4603 Compare March 26, 2026 18:37
@wacodereviewer
Copy link
Copy Markdown

🤖 WA Code Reviewer Result

PR Overview

This PR is a refactor 🛠️

Replaces deprecated function with equivalent null-coalescing operator. Behavior should be the same before/after.


Change Details

Change File List

Modified files:

  • CRM/SimpleDonate/Form/SimpleDonationSetting.php
Major Changes Description
SimpleDonationSetting.php This diff contains changes to three functions: setDefaultValues, postProcess, and transactDonation. The changes primarily involve replacing CRM_Utils_Array::value with the null coalescing operator ?? NULL to handle cases where the value may not exist. Additionally, the changes to transactDonation also include replacing $_POST with its individual values (params, amount, creditInfo, and isTest) to handle cases where the values may not exist.

PR Quality Assessment:

Good code quality. The PR meets most standards but has some areas for improvement.

===================== Report End =====================

Replaces deprecated function with equivalent null-coalescing operator. Behavior should be the same before/after.
@colemanw colemanw force-pushed the noUtilsArrayValue branch from e2d4603 to 10b727c Compare March 26, 2026 18:38
@wacodereviewer
Copy link
Copy Markdown

🤖 WA Code Reviewer Result

PR Overview

This PR is fixing bug 🐛

Replaces deprecated function with equivalent null-coalescing operator. Behavior should be the same before/after.


Change Details

Change File List

Modified files:

  • CRM/SimpleDonate/Form/SimpleDonationSetting.php
Major Changes Description
SimpleDonationSetting.php Here is a brief summary of the diff content: This diff contains changes to the CRM/SimpleDonate/Form/SimpleDonationSetting.php file. It updates several instances of using CRM_Utils_Array::value() to instead use the null coalescing operator ?? to handle null or undefined values.

PR Quality Assessment:

Good code quality. The PR meets most standards but has some areas for improvement.

===================== Report End =====================

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