Hello,
I have a strange issue with Vector after accessing element with the Null coalescing operator.
$vector = new Vector([5, 6, 7]);
var_dump($vector->contains(5)); // Print true
var_dump($vector->contains(6)); // Print true
$vector[0] ?? null;
var_dump($vector->contains(5)); // Print false !!!
var_dump($vector->contains(6)); // Print true
Is this expected ? Can it be fixed ?
Don't hesitate if you need more info and thank you in advance for your help