Skip to content

Commit

Permalink
Merge pull request #822 from yunwuxin/master
Browse files Browse the repository at this point in the history
Update Trees.php
  • Loading branch information
acrobat committed Oct 31, 2019
2 parents af78874 + 1b66f2c commit 357f69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Github/Api/GitData/Trees.php
Expand Up @@ -54,7 +54,7 @@ public function create($username, $repository, array $params)
}

// If `sha` is not set, `content` is required
if (!isset($tree['sha']) && !isset($tree['content'])) {
if (!array_key_exists('sha', $tree) && !isset($tree['content'])) {
throw new MissingArgumentException("tree.$key.content");
}
}
Expand Down

0 comments on commit 357f69c

Please sign in to comment.