Skip to content

1.1.0

Compare
Choose a tag to compare
@samsonasik samsonasik released this 12 Jan 09:09
· 72 commits to main since this release
1.1.0
c9d6fbd

1.1.0

ci build Code Coverage PHPStan

Added ability to filter by key as well in all AtLeast, Only, and Finder:

$data = ['abc def', 'def ghi', 'ghi jkl'];

$filter = static fn(string $datum, int $key): bool => str_contains($datum, 'def') && $key >= 0;
Atleast::once($data, $filter); // true

$filter = static fn(string $datum, int $key): bool => str_contains($datum, 'not found datum') && $key >= 0;
Atleast::once($data, $filter); // false