$files->update()
Updates an object in the collection
$files->update(object|string $key, $object = null): Kirby\Cms\Files
Parameters
| Name | Type | Default | 
|---|---|---|
| $keyrequired | objectorstring | 
				no default value | 
| $object | mixed | 
				
															null
									 | 
							
Return type
This method modifies the existing $files object it is applied to and returns it again.
Parent class
	Kirby\Cms\Files
		inherited from Kirby\Cms\Collection