I've only seen it in examples for WeakMaps, and I can't find anything about it when looking at a list of operators nor the documentation for null coalescing.
Example:
return $this->cache[$prod] ??= $this->findReviews($prod->id());
I've only seen it in examples for WeakMaps, and I can't find anything about it when looking at a list of operators nor the documentation for null coalescing.
Example:
return $this->cache[$prod] ??= $this->findReviews($prod->id());