When using PHP 7, entity save/push fails on some complex values, causing this notice:
Notice: Array to string conversion in salesforce_mapping_property_fieldmap_push_value() (line 130 of salesforce/modules/salesforce_mapping/includes/salesforce_mapping.fieldmap_type.inc).
This is due to the introduction of Uniform Variable Syntax in PHP 7 (see "Semantic differences in existing syntax" here).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | salesforce-uniform-variable-syntax-2847510-3-D7.patch | 2.78 KB | philbenson |
Comments
Comment #2
aaronbaumanI think you meant to file against D7.
Patches welcome, as long as they're backwards-compatible to PHP 5
Comment #3
philbenson commentedGood catch, Aaron, thanks. I updated the syntax to be compatible with PHP 5 and 7.
Comment #4
aaronbaumanLooks good to me.
I'll leave on "Needs review" until someone can confirm.
Comment #5
vaish commentedPatch #3 solved the issue for me.
Comment #6
ironsizide commentedPatch #3 works for me as well
Comment #8
gcbComment #10
joegraduate