Overrides MapInterface::replaceIf
public function replaceIf(int|string $key, mixed $oldValue, mixed $newValue) : bool { if ($this->get($key) === $oldValue) { $this[$key] = $newValue; return true; } return false; }