josephlacey / com.jlacey.electoral

GNU Affero General Public License v3.0
6 stars 12 forks source link

PHP Deprecated Error - access syntax with curly braces is deprecated #34

Open privaterra opened 3 years ago

privaterra commented 3 years ago

I've just noticed that with the latest update CiviCRM and php upgrade (via yum upgrade), I'm now getting the following non-fatal errors when I execute my civicrm cronjobs...

Below are the details of my site and the error message that appears :

/usr/local/bin/wp --user=XXXXX--url=https://DOMAIN-NAME ----path=/var/www/html civicrm api job.execute auth=0
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in /var/www/html/wp-content/uploads/civicrm/ext/com.jlacey.electoral/electoral.civix.php on line 150

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/wp-content/uploads/civicrm/ext/com.jlacey.electoral/electoral.civix.php on line 150
josephlacey commented 3 years ago

@privaterra That's not surprising, yeah. If you want to submit a PR to fix those warnings, I can review it and merge it, but version 3 is the future of this extension. It's hosted on a fork. It doesn't have feature parity yet though, so I wouldn't recommend upgrading to it immediately,

https://github.com/MegaphoneJon/com.jlacey.electoral