Skip to content

Commit

Permalink
Remove typing for filter method
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Dec 24, 2024
1 parent 55cd895 commit f07ffa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/Discord/Helpers/CollectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,11 @@ public function has(...$keys): bool
*
* @param callable $callback
*
* @return static
* @return CollectionInterface
*
* @todo This method will be typed to return a CollectionInterface in v11
*/
public function filter(callable $callback): static
public function filter(callable $callback)
{
$collection = new static([], $this->discrim, $this->class);

Expand Down
6 changes: 3 additions & 3 deletions src/Discord/Repository/AbstractRepositoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,11 @@ public function has(...$keys): bool
*
* @param callable $callback
*
* @return Collection
* @return CollectionInterface
*
* @todo This method will return a CollectionInterface in v11
* @todo This method will be typed to return a CollectionInterface in v11
*/
public function filter(callable $callback): Collection
public function filter(callable $callback)
{
$collection = new Collection([], $this->discrim, $this->class);

Expand Down

0 comments on commit f07ffa2

Please sign in to comment.