# $productList->updateItem()

> Updates existing item

- Source: `src/ProductList.php#L112` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/ProductList.php#L112>

```php
$productList->updateItem(string $key, array $data): Wagnerwagner\Merx\ProductList
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$key` | `string` | `–` |
| `$data` | `array` | `–` |

## Return type

`Wagnerwagner\Merx\ProductList`

## Parent class

`Wagnerwagner\Merx\ProductList`
