Trying to port all my code from a Kirby 2 project in to the new Kirby 3 platform.
This code worked on K2:
$selectedProductsCollection = new Collection($selectedProductsArray);
snippet('product-grid', array('products' => $selectedProductsCollection));
But in K3 I get this error: “Call to a member function id() on array” inside kirby/src/Cms/Collection.php
Tried to find a solution in the new doc but didn’t, so I ask here now.