Skip to content

Commit

Permalink
Fix interfaces (to backport to master)
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 31, 2021
1 parent da430f9 commit f9b7c1c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Contract/Operation/Pluckable.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface Pluckable
* @param array<int, string>|array-key $pluck
* @param mixed|null $default
*
* @return Collection<TKey, T>
* @return Collection<int, T|iterable<int, T>>
*/
public function pluck($pluck, $default = null): Collection;
}
2 changes: 1 addition & 1 deletion src/Contract/Operation/Scaleable.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Scaleable
*
* @see https://loophp-collection.readthedocs.io/en/stable/pages/api.html#scale
*
* @return Collection<TKey, T>
* @return Collection<TKey, float|int>
*/
public function scale(
float $lowerBound,
Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Operation/Splitable.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface Splitable
*
* @param callable ...$callbacks
*
* @return Collection<TKey, T>
* @return Collection<int, list<T>>
*/
public function split(int $type = Splitable::BEFORE, callable ...$callbacks): Collection;
}
3 changes: 1 addition & 2 deletions src/Contract/Operation/Unfoldable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
interface Unfoldable
{
/**
* @template TKey
* @template TKey
* @template T
*
* @param callable(mixed|T...): (mixed|array<TKey, T>) $callback
* @param T ...$parameters
*
* @return Collection<TKey, T>
* @return Collection<int, T>
*/
public static function unfold(callable $callback, ...$parameters): Collection;
}

0 comments on commit f9b7c1c

Please sign in to comment.