Skip to content

Commit d6e9047

Browse files
committed
ExCollectionInterface type hinting
1 parent 9ab9aa0 commit d6e9047

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Discord/Helpers/CollectionTrait.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(array $items = [], ?string $discrim = 'id', ?string
3434
* @param ?string $discrim
3535
* @param ?string $class
3636
*
37-
* @return CollectionInterface
37+
* @return ExCollectionInterface
3838
*/
3939
public static function from(array $items = [], ?string $discrim = 'id', ?string $class = null)
4040
{
@@ -47,7 +47,7 @@ public static function from(array $items = [], ?string $discrim = 'id', ?string
4747
* @param string $class
4848
* @param ?string $discrim
4949
*
50-
* @return CollectionInterface
50+
* @return ExCollectionInterface
5151
*/
5252
public static function for(string $class, ?string $discrim = 'id')
5353
{
@@ -289,7 +289,7 @@ public function search(mixed $needle, bool $strict = false): string|int|false
289289
*
290290
* @param callable $callback
291291
*
292-
* @return CollectionInterface
292+
* @return ExCollectionInterface
293293
*
294294
* @todo This method will be typed to return a CollectionInterface in v11
295295
*/
@@ -523,7 +523,7 @@ public function reduce(callable $callback, $initial = null)
523523
*
524524
* @param callable $callback
525525
*
526-
* @return CollectionInterface
526+
* @return ExCollectionInterface
527527
*/
528528
public function map(callable $callback)
529529
{
@@ -538,7 +538,7 @@ public function map(callable $callback)
538538
*
539539
* @param int $flags
540540
*
541-
* @return CollectionInterface
541+
* @return ExCollectionInterface
542542
*/
543543
public function unique(int $flags = SORT_STRING)
544544
{
@@ -575,7 +575,7 @@ public function toArray()
575575
/**
576576
* Converts the items into a new collection.
577577
*
578-
* @return CollectionInterface
578+
* @return ExCollectionInterface
579579
*/
580580
public function collect()
581581
{

src/Discord/Repository/AbstractRepositoryTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,9 @@ public function has(...$keys): bool
589589
*
590590
* @param callable $callback
591591
*
592-
* @return CollectionInterface
592+
* @return ExCollectionInterface
593593
*
594-
* @todo This method will be typed to return a CollectionInterface in v11
594+
* @todo This method will be typed to return an ExCollectionInterface in v11
595595
*/
596596
public function filter(callable $callback)
597597
{

0 commit comments

Comments
 (0)