alexpechkarev / google-maps

Collection of Google Maps API Web Services for Laravel
https://alexpechkarev.github.io/google-maps/
MIT License
523 stars 115 forks source link

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

Closed KasunAssetDidital closed 4 years ago

KasunAssetDidital commented 4 years ago

Hi alexpechkarev,

I found that your library is very useful how ever there is an issue when use Direction api, i got following error,if you can please help me with that

my PHP Version 7.4.2

bandicam 2020-05-19 20-02-13-856

error generating from this $b variable

bandicam 2020-05-19 20-03-27-067

Thank you

KasunAssetDidital commented 4 years ago

i found the issue need to replace on line 339,349 {$index++} with [index++]

alexpechkarev commented 4 years ago

Hi @KasunAssetDidital

Thank you for pointing out.

This package was referencing to an older version of geometry-library, have updated and published a new release 7.1.

composer require "alexpechkarev/google-maps":"7.1"

Regards

martin-arvisais commented 4 years ago

Hi, are you planning to do the same update to the version 6.0 (for Laravel 6.X), i have the same problem, but i must stay on a Laravel 6.x version, thx :)