Skip to content

Commit

Permalink
Merge pull request #41 from silarhi/bugfix
Browse files Browse the repository at this point in the history
set higher level for phpstan
  • Loading branch information
guillaume-sainthillier authored Feb 9, 2024
2 parents adf2661 + 4066faa commit 791f3e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion phpstan.dist.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 6
level: 9
paths:
- src
- tests
6 changes: 3 additions & 3 deletions src/Configuration/OrderConfigurations.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
class OrderConfigurations implements IteratorAggregate, Countable, ArrayAccess
{
/** @var array<int, OrderConfiguration> */
/** @var array<int|string, OrderConfiguration> */
private array $orderConfigurations;

public function __construct(OrderConfiguration ...$orderConfigurations)
Expand All @@ -50,15 +50,15 @@ public function clear(): void
}

/**
* @return array<int, OrderConfiguration>
* @return array<int|string, OrderConfiguration>
*/
public function getOrderConfigurations(): array
{
return $this->orderConfigurations;
}

/**
* @return ArrayIterator<int, OrderConfiguration>
* @return ArrayIterator<int|string, OrderConfiguration>
*/
public function getIterator(): ArrayIterator
{
Expand Down
4 changes: 2 additions & 2 deletions src/Iterator/ChunkIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/**
* @template TValue
* @template TKey
* @template TKey of int|string
*
* @implements IteratorAggregate<TKey, TValue>
*/
Expand All @@ -33,7 +33,7 @@ public function __construct(private iterable $data, private int $size)
}

/**
* @return Traversable<TKey, array<TValue>>
* @return Traversable<int, array<TKey, TValue>>
*/
public function getIterator(): Traversable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Pagination/CursorPagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
class CursorPagination
{
/** @var array<int, mixed> */
/** @var array<int|string, mixed> */
private array $afterValues = [];

public function __construct(
Expand Down

0 comments on commit 791f3e6

Please sign in to comment.