Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for compatibility with PHP 7.4+ #1

Open
2020media opened this issue Feb 14, 2023 · 0 comments
Open

Fix for compatibility with PHP 7.4+ #1

2020media opened this issue Feb 14, 2023 · 0 comments

Comments

@2020media
Copy link

please update code for compatibility with PHP 7.4+

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /path-to-civi/ext/bha.politicaldata/politicaldata.civix.php on line 155, referer: https://www.mydomain/civicrm/admin/extensions?action=add&id=bha.politicaldata&key=bha.politicaldata

Reason
https://stackoverflow.com/questions/59158548/array-and-string-offset-access-syntax-with-curly-braces-is-deprecated

Fix
Edit politicaldata.civix.php on line 155 replacing {} with []
eg
if ($entry[0] == '.') {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant