Skip to content

Commit f8d719c

Browse files
committed
fix: phpstan
1 parent 31198ed commit f8d719c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/IterableMapTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
it('maps a Traversable object', function (): void {
2727
$iterable = SplFixedArray::fromArray(['foo', 'bar']);
2828
$map = 'strtoupper';
29-
$mapped = iterable_map($iterable, $map);
29+
$mapped = iterable_map($iterable, $map); // @phpstan-ignore-line
3030
assert($mapped instanceof Traversable);
3131
assertSame(['FOO', 'BAR'], iterable_to_array($mapped));
3232
});

tests/IterableReduceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
$reduce = static function (?int $carry, int $item): int {
2424
return (int) $carry + $item;
2525
};
26-
assertSame(3, iterable_reduce($iterable, $reduce, 0));
26+
assertSame(3, iterable_reduce($iterable, $reduce, 0)); // @phpstan-ignore-line
2727
});

0 commit comments

Comments
 (0)