# $pricingRules->update()

> Updates an object in the collection

- Source: `src/Cms/Collection.php#L400` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Collection.php#L400>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$pricingRules->update(object|string $key, $object = null): Kirby\Cms\Collection
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$key` | `object\|string` | `–` |
| `$object` | `–` | `null` |

## Return type

`Kirby\Cms\Collection`

## Parent class

`Wagnerwagner\Merx\PricingRules` inherited from `Kirby\Cms\Collection`
