Skip to content

Commit 248202b

Browse files
authored
README: fix credentials update documentation
1 parent 2d626d4 commit 248202b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Returns the new credential.
195195
```php
196196
$credentialId = 42;
197197
$type = \PrivatePackagist\ApiClient\Api\Credentials::TYPE_HTTP_BASIC;
198-
$credential = $client->credentials()->create($credentialId, $type, 'username', 'password');
198+
$credential = $client->credentials()->update($credentialId, $type, 'username', 'password');
199199
```
200200
Returns the updated credential.
201201

0 commit comments

Comments
 (0)