diff --git a/src/Discord/Repository/AbstractRepository.php b/src/Discord/Repository/AbstractRepository.php index ecf4d8d94..8cf6fa9ca 100755 --- a/src/Discord/Repository/AbstractRepository.php +++ b/src/Discord/Repository/AbstractRepository.php @@ -24,7 +24,7 @@ * @property string $discrim The discriminator. * @property-read CacheWrapper $cache The react/cache wrapper. */ -abstract class AbstractRepository extends Collection +abstract class AbstractRepository extends Collection implements AbstractRepositoryInterface { /** * The collection discriminator. diff --git a/src/Discord/Repository/AbstractRepositoryInterface.php b/src/Discord/Repository/AbstractRepositoryInterface.php index 4ba9eb336..7abdbca78 100644 --- a/src/Discord/Repository/AbstractRepositoryInterface.php +++ b/src/Discord/Repository/AbstractRepositoryInterface.php @@ -11,9 +11,8 @@ namespace Discord\Repository; -use Discord\Helpers\CollectionInterface; use Discord\Discord; -use Discord\Helpers\Collection; +use Discord\Helpers\CollectionInterface; use Discord\Parts\Part; use React\Promise\PromiseInterface; use Traversable; @@ -36,7 +35,7 @@ public function pushItem($item): self; public function first(); public function last(); public function has(...$keys): bool; - public function filter(callable $callback): Collection; + public function filter(callable $callback); public function find(callable $callback); public function clear(): void; public function toArray(): array; diff --git a/src/Discord/Repository/AbstractRepositoryTrait.php b/src/Discord/Repository/AbstractRepositoryTrait.php index d5521cc75..b21c0e4a7 100644 --- a/src/Discord/Repository/AbstractRepositoryTrait.php +++ b/src/Discord/Repository/AbstractRepositoryTrait.php @@ -15,6 +15,7 @@ use Discord\Factory\Factory; use Discord\Helpers\CacheWrapper; use Discord\Helpers\Collection; +use Discord\Helpers\CollectionInterface; use Discord\Helpers\CollectionTrait; use Discord\Helpers\LegacyCacheWrapper; use Discord\Http\Endpoint;