PHP 5.3 syntax error, unexpected '['

Created on 4 September 2019, almost 5 years ago
Updated 30 October 2023, 8 months ago

With the latest version of geocoder, I get a fatal error on an old Drupal 7 site:

Parse error: syntax error, unexpected '[' in drupal-7/sites/all/modules/contrib/geocoder/geocoder.widget.inc on line 613

Yes, PHP 5.3 is old. However, the attached patch also makes the coder easier for everyone to read. It also keeps the lines under 80chars, as per Drupal's coding standards.

πŸ› Bug report
Status

Closed: duplicate

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jenlampton

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024