We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d49e341 + 6188f4b commit 62d3824Copy full SHA for 62d3824
doc/repo/contents.md
@@ -31,7 +31,7 @@ $fileInfo = $client->api('repo')->contents()->create('knp-labs', 'php-github-api
31
$committer = array('name' => 'KnpLabs', 'email' => '[email protected]');
32
$oldFile = $client->api('repo')->contents()->show('knp-labs', 'php-github-api', $path, $branch);
33
34
-$fileInfo = $client->api('repo')->contents()->create('knp-labs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer);
+$fileInfo = $client->api('repo')->contents()->update('knp-labs', 'php-github-api', $path, $content, $commitMessage, $oldFile['sha'], $branch, $committer);
35
```
36
37
### Remove a file
0 commit comments