Skip to content

fix deprecation warning on trim()

JonGold requested to merge JonGold/discountcontributions:fix-null-trim into master

Saw this in my logs:

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in CRM_Discountcontributions_Contribute_Form_Contribution_Main::buildAmount() (line 90 of /var/www/www.mysite.org/web/sites/all/civicrm-custom/extensions/discountcontributions/CRM/Discountcontributions/Contribute/Form/Contribution/Main.php).

I fixed it, and capitalized some words to make my style checker slightly happier.

Merge request reports