Map parts type error - property_exists() passed an array #402
Description
Found a somewhat critical issue (for us anyway), during normalizeValue()
there is a method that populates missing data / parts:
simplemap/src/services/MapService.php
Lines 281 to 284 in ff88b55
We recently identified that we were restricting our api key and as a result this call wasn't working (see ##296 (comment))
We temporarily worked around this by removing restrictions for our geoToken but as a result any unsaved events, that needed to be accessed via the front end were being normalized, grabbing missing data from google and setting it as an array on the Map model.
The the parts property on the map model can accept an array:
simplemap/src/models/BaseLocation.php
Line 38 in ff88b55
Although if it is an array you are going to run into an error here:
Line 82 in ff88b55
Likely related to this:
#181