Skip to content

Commit

Permalink
fix: add missing SA annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 29, 2024
1 parent c27fa4d commit 9f3984b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ShuffleIteratorAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

use const PHP_INT_MAX;

/**
* @template TKey
* @template T
*
* @implements IteratorAggregate<TKey, T>
*/
final class ShuffleIteratorAggregate implements IteratorAggregate
{
public function __construct(private readonly int $max = PHP_INT_MAX, private readonly ?int $seed = null)

Check failure on line 22 in src/ShuffleIteratorAggregate.php

View workflow job for this annotation

GitHub Actions / Static Analysis (ubuntu-latest, 8.1)

Property loophp\iterators\ShuffleIteratorAggregate::$seed is never read, only written.

Check failure on line 22 in src/ShuffleIteratorAggregate.php

View workflow job for this annotation

GitHub Actions / Static Analysis (ubuntu-latest, 8.1)

Property loophp\iterators\ShuffleIteratorAggregate::$seed is never read, only written.
Expand Down

0 comments on commit 9f3984b

Please sign in to comment.