Skip to content

Commit da9d128

Browse files
committed
Official deprecation of \Auth0\SDK\API\Management\ClientGrants::get
1 parent de9163b commit da9d128

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/API/Management/ClientGrants.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,25 @@ public function update($id, array $scope)
169169
->call();
170170
}
171171

172+
/*
173+
* Deprecated
174+
*/
175+
176+
// phpcs:disable
177+
172178
/**
173179
* Get a Client Grant.
174-
* TODO: Deprecate, cannot get a Client Grant by ID.
180+
*
181+
* @deprecated 5.4.0, no such endpoint.
175182
*
176183
* @param string $id Client Grant ID.
177184
* @param null|string $audience Client Grant audience to filter by.
178185
*
179186
* @return mixed
180187
*
181188
* @throws \Exception Thrown by the HTTP client when there is a problem with the API call.
189+
*
190+
* @codeCoverageIgnore - Deprecated.
182191
*/
183192
public function get($id, $audience = null)
184193
{
@@ -191,4 +200,6 @@ public function get($id, $audience = null)
191200

192201
return $request->call();
193202
}
203+
204+
// phpcs:enable
194205
}

0 commit comments

Comments
 (0)