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.
1 parent 095f427 commit 506ccb5Copy full SHA for 506ccb5
lib/Bitbucket/API/Repositories/BranchRestrictions.php
@@ -64,7 +64,7 @@ public function create($account, $repo, $params = array())
64
65
$params = array_merge($defaults, $params);
66
67
- if (empty($params['kind']) || !in_array($params['kind'], array('push', 'delete', 'force'))) {
+ if (empty($params['kind']) || !in_array($params['kind'], array('push', 'delete', 'force','restrict_merges'))) {
68
throw new \InvalidArgumentException('Invalid restriction kind.');
69
}
70
0 commit comments