Skip to content

Commit

Permalink
Fix trait import
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed Jan 16, 2025
1 parent b14a071 commit 7ca5b9c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Discord/Repository/AbstractRepositoryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ trait AbstractRepositoryTrait
fill as fill;
push as push;
isset as isset;
slice as slice;
sort as sort;
map as map;
merge as merge;
serialize as serialize;
Expand Down Expand Up @@ -649,7 +651,7 @@ public function clear(): void
*/
public function slice(int $offset, ?int $length, bool $preserve_keys = false)
{
return $this->__Collection__slice($offset, $length, $preserve_keys);
return $this->slice($offset, $length, $preserve_keys);
}

/**
Expand All @@ -661,7 +663,7 @@ public function slice(int $offset, ?int $length, bool $preserve_keys = false)
*/
public function sort(callable|int|null $callback)
{
return $this->__Collection__sort($callback);
return $this->sort($callback);
}

/**
Expand All @@ -673,7 +675,7 @@ public function sort(callable|int|null $callback)
*/
public function map(callable $callback)
{
return $this->__Collection__map($callback);
return $this->map($callback);
}

/**
Expand Down

0 comments on commit 7ca5b9c

Please sign in to comment.