Skip to content

Commit 5100459

Browse files
jeffersonmartinJeff Martin
and
Jeff Martin
authored
[10.4] Update Users remove method to add params array to support hard_delete (#607)
Co-authored-by: Jeff Martin <[email protected]>
1 parent 3ca30a4 commit 5100459

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
[10.4.0]: https://github.com/GitLabPHP/Client/compare/10.3.1...10.4.0
1111

1212
* Add min_access_level option to group search
13+
* Added params array to remove user method to support hard_delete
1314

1415
## [10.3.1] - 2020-12-04
1516

src/Api/Users.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,18 @@ public function update(int $id, array $params, array $files = [])
181181
}
182182

183183
/**
184-
* @param int $id
184+
* @param int $id
185+
* @param array $params {
186+
*
187+
* @var bool $hard_delete If true, contributions that would usually be moved to the ghost user are
188+
* deleted instead, as well as groups owned solely by this user.
189+
* }
185190
*
186191
* @return mixed
187192
*/
188-
public function remove(int $id)
193+
public function remove(int $id, array $params = [])
189194
{
190-
return $this->delete('users/'.self::encodePath($id));
195+
return $this->delete('users/'.self::encodePath($id), $params);
191196
}
192197

193198
/**

0 commit comments

Comments
 (0)