twomice / com.joineryhq.reltoken

CiviCRM extension: Provides tokens for any related contact, for all available contact tokens. E.g., to get the spouse's first name, or parent's marriage date.
Other
1 stars 5 forks source link

Array and string offset access syntax with curly braces is deprecated #17

Closed bmango closed 2 years ago

bmango commented 2 years ago

Using php 7.4 I'm getting the error message above. This seems to be coming from line 169 in reltoken.civix.php. I have swapped

if ($entry{0} == '.') {

with

if ($entry[0] == '.') {

Which I think has fixed it

lucky091588 commented 2 years ago

Hi @bmango. I think you have an older version of this extension, since I can't find the if ($entry{0} == '.') { on the latest reltoken.civix.php. I have found that line on the old version of the file though, which you can see in here, and it was already updated last Feb 2021.

bmango commented 2 years ago

Ok, thanks!