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 af78874 + 1b66f2c commit 357f69cCopy full SHA for 357f69c
lib/Github/Api/GitData/Trees.php
@@ -54,7 +54,7 @@ public function create($username, $repository, array $params)
54
}
55
56
// If `sha` is not set, `content` is required
57
- if (!isset($tree['sha']) && !isset($tree['content'])) {
+ if (!array_key_exists('sha', $tree) && !isset($tree['content'])) {
58
throw new MissingArgumentException("tree.$key.content");
59
60
0 commit comments