Skip to content

Commit 0040789

Browse files
author
Six
committed
Removed suppressions.
1 parent 0db4dea commit 0040789

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/AbstractStrategy.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
*/
2929
final public function __construct(array $elements, int $k)
3030
{
31-
/* @noinspection PhpConditionAlreadyCheckedInspection */
3231
if ($k < 1) {
3332
throw new \InvalidArgumentException("\$k must be greater than zero, got: $k");
3433
}
@@ -55,8 +54,8 @@ protected function assertValid(): void
5554
abstract protected function next(array $elements, int $i): array;
5655

5756
/**
58-
* @param list<T> $elements
59-
* @param list<T> $result
57+
* @param list<T> $elements
58+
* @param array<int, T> $result
6059
*
6160
* @return iterable<int, list<T>>
6261
*/
@@ -66,7 +65,6 @@ final protected function generate(array $elements, int $slot = 0, array &$result
6665

6766
foreach ($elements as $i => $element) {
6867
/** @var list<T> $result */
69-
/** @phpstan-ignore parameterByRef.type */
7068
$result[$slot] = $element;
7169

7270
if ($nextSlot < $this->k) {

0 commit comments

Comments
 (0)