eileenmcnaughton / org.wikimedia.geocoder

Geocoder for CiviCRM
Other
6 stars 17 forks source link

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

Closed bmango closed 3 years ago

bmango commented 3 years ago

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

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

with

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

Which I think has fixed it

eileenmcnaughton commented 3 years ago

@bmango - I think that is fixed in the master branch?

bmango commented 3 years ago

Sorry, apologies!

eileenmcnaughton commented 3 years ago

@bmango I tagged release 1.7 against CiviCRM 5.40 - but probably the latest release works fine on older civi versions - I don't check but it's not a rapidly changing code integraion area