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 378cf17 commit 0d561b4Copy full SHA for 0d561b4
lib/Bitbucket/API/Repositories/BranchRestrictions.php
@@ -81,7 +81,7 @@ public function create($account, $repo, $params = array())
81
82
$params = array_merge($defaults, $params);
83
84
- if (empty($params['kind']) || !in_array($params['kind'], $this->$allowedRestrictionTypes)) {
+ if (empty($params['kind']) || !in_array($params['kind'], $this->allowedRestrictionTypes)) {
85
throw new \InvalidArgumentException('Invalid restriction kind.');
86
}
87
0 commit comments