Skip to content

Commit 5910114

Browse files
committed
discard psalm errors
1 parent 871512c commit 5910114

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

src/Accumulate.php

+4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ public function key(): mixed
5454

5555
public function next(): void
5656
{
57+
/** @psalm-suppress InaccessibleProperty */
5758
\next($this->keys);
59+
/** @psalm-suppress InaccessibleProperty */
5860
\next($this->values);
5961

6062
if ($this->reachedCacheEnd()) {
@@ -65,7 +67,9 @@ public function next(): void
6567

6668
public function rewind(): void
6769
{
70+
/** @psalm-suppress InaccessibleProperty */
6871
\reset($this->keys);
72+
/** @psalm-suppress InaccessibleProperty */
6973
\reset($this->values);
7074
}
7175

src/Map/Primitive.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ public function reduce($carry, callable $reducer)
327327

328328
public function empty(): bool
329329
{
330-
/** @psalm-suppress MixedArgumentTypeCoercion */
330+
/**
331+
* @psalm-suppress InaccessibleProperty
332+
* @psalm-suppress MixedArgumentTypeCoercion
333+
*/
331334
\reset($this->values);
332335

333336
/** @psalm-suppress MixedArgumentTypeCoercion */

src/Sequence/Lazy.php

+1
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ public function contains($element): bool
272272
/** @psalm-suppress ImpureFunctionCall */
273273
$generator = ($this->values)($register);
274274

275+
/** @psalm-suppress ImpureMethodCall */
275276
foreach ($generator as $value) {
276277
if ($value === $element) {
277278
/** @psalm-suppress ImpureMethodCall */

src/Sequence/Primitive.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,10 @@ public function intersect(Implementation $sequence): self
384384
public function sort(callable $function): self
385385
{
386386
$self = clone $this;
387-
/** @psalm-suppress ImpureFunctionCall */
387+
/**
388+
* @psalm-suppress InaccessibleProperty
389+
* @psalm-suppress ImpureFunctionCall
390+
*/
388391
\usort($self->values, $function);
389392

390393
return $self;
@@ -527,6 +530,7 @@ public function aggregate(callable $map, callable $exfiltrate): self
527530
$values = $aggregate(static fn($a, $b) => $exfiltrate($map($a, $b))->iterator());
528531
$aggregated = [];
529532

533+
/** @psalm-suppress ImpureMethodCall */
530534
foreach ($values as $value) {
531535
$aggregated[] = $value;
532536
}

0 commit comments

Comments
 (0)