Skip to content

Commit

Permalink
Clarification of AbstractRepository deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Sep 26, 2024
1 parent 763d4bc commit af54bcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Discord/Repository/AbstractRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ public function cachePull($key, $default = null): ExtendedPromiseInterface
* Pushes a single item to the repository.
*
* @deprecated 10.0.0 Use async `$repository->cache->set()`
* This method is deprecated for userland code but can still be used internally within the library.
*
* @param Part $item
*
Expand Down Expand Up @@ -649,6 +650,7 @@ public function keys(): array
* If the repository has an offset.
*
* @deprecated 10.0.0 Use async `$repository->cache->has()`
* This method is deprecated for userland code but can still be used internally within the library.
*
* @param string|int $offset
*
Expand All @@ -663,6 +665,7 @@ public function offsetExists($offset): bool
* Gets a part from the repository.
*
* @deprecated 10.0.0 Use async `$repository->cacheGet()` or sync `$repository->get()`
* This method is deprecated for userland code but can still be used internally within the library.
*
* @param string|int $offset
*
Expand Down

0 comments on commit af54bcf

Please sign in to comment.