You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'am trying to achieve to create PoiCollections on the fly based on other records e.g. news with a given latitude and longitude. If I'am using the widget as follows <maps2:widget.poiCollection poiCollections="{poiCollections}" override="{settings: {mapWidth: '100%', mapHeight: '300'}}" /> and the type of poiCollections is ArrayObject the type requirement Traversable of the ViewHelper is met. But the following ConvertToJsonViewHelper.php checks for poicollections on line 112 if it's an array. The given type of ArrayObject doesn't satisfy this criteria.
Is it possible to extend this if statement with || $value instanceof \Traversable ??
Thx in advance :)
The text was updated successfully, but these errors were encountered:
I just see that PHP 8.1 has deprecated the use of objects for reset() and current(). So I can't implement your solution.
For now I have added following lines into this method:
// With PHP 8.1 reset() and current() should not be used with objects anymore.
// Extract the values as simple array to be compatible in the future.
if ($value instanceof \ArrayObject) {
$value = $value->getArrayCopy();
}
Hey,
I'am trying to achieve to create PoiCollections on the fly based on other records e.g. news with a given latitude and longitude. If I'am using the widget as follows
<maps2:widget.poiCollection poiCollections="{poiCollections}" override="{settings: {mapWidth: '100%', mapHeight: '300'}}" />
and the type of poiCollections is ArrayObject the type requirement Traversable of the ViewHelper is met. But the following ConvertToJsonViewHelper.php checks for poicollections on line 112 if it's an array. The given type of ArrayObject doesn't satisfy this criteria.Is it possible to extend this if statement with
|| $value instanceof \Traversable
??Thx in advance :)
The text was updated successfully, but these errors were encountered: