Skip to content

Commit

Permalink
Fix PHPStan issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 10, 2020
1 parent af643c5 commit d36339a
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Contract/Operation/Chunkable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Chunkable
/**
* Chunk the collection into chunks of the given size.
*
* @param array<int, int> $size
* @param int ...$size
*
* @return \loophp\collection\Base<mixed>|\loophp\collection\Contract\Collection<mixed>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Operation/Mergeable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Mergeable
/**
* Merge one or more collection of items onto a collection.
*
* @param iterable ...$sources
* @param iterable<mixed> ...$sources
*
* @return \loophp\collection\Base<mixed>|\loophp\collection\Contract\Collection<mixed>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Operation/Productable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Productable
/**
* Get the the cartesian product of items of a collection.
*
* @param iterable ...$iterables
* @param iterable<mixed> ...$iterables
*
* @return \loophp\collection\Base<mixed>|\loophp\collection\Contract\Collection<mixed>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Operation/Zipable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Zipable
/**
* Zip a collection together with one or more iterables.
*
* @param iterable ...$iterables
* @param iterable<mixed> ...$iterables
*
* @return \loophp\collection\Base<mixed>|\loophp\collection\Contract\Collection<mixed>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/Chunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class Chunk implements Operation
/**
* Chunk constructor.
*
* @param array<int, int> $size
* @param int ...$size
*/
public function __construct(int ...$size)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Operation/Merge.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
final class Merge implements Operation
{
/**
* @var iterable[]
* @var array<int, iterable<mixed>>
*/
private $sources;

/**
* Merge constructor.
*
* @param iterable ...$sources
* @param iterable<mixed> ...$sources
*/
public function __construct(iterable ...$sources)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Operation/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
final class Product implements Operation
{
/**
* @var iterable[]
* @var array<int, iterable<mixed>>
*/
private $iterables;

/**
* Product constructor.
*
* @param iterable ...$iterables
* @param iterable<mixed> ...$iterables
*/
public function __construct(iterable ...$iterables)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/Window.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ final class Window implements Operation
/**
* Window constructor.
*
* @param array<int, int> $length
* @param int ...$length
*/
public function __construct(int ...$length)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/Zip.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class Zip implements Operation
/**
* Zip constructor.
*
* @param iterable ...$iterables
* @param iterable<mixed> ...$iterables
*/
public function __construct(iterable ...$iterables)
{
Expand Down

0 comments on commit d36339a

Please sign in to comment.