Skip to content

Add explode function to the array provider #48

Add explode function to the array provider

Add explode function to the array provider #48

Triggered via push April 16, 2024 08:33
Status Success
Total duration 40s
Artifacts 1

infection.yaml

on: push
infection
29s
infection
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
infection
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
infection
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
infection: src/FilterList.php#L40
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ } private function evaluate(array $context, iterable $iterator, ?callable $callback = null) { - if ($iterator instanceof \IteratorAggregate) { + if (true) { $iterator = new \IteratorIterator($iterator); } elseif (\is_array($iterator)) { $iterator = new \ArrayIterator($iterator);
infection: src/FilterList.php#L40
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ } private function evaluate(array $context, iterable $iterator, ?callable $callback = null) { - if ($iterator instanceof \IteratorAggregate) { + if (false) { $iterator = new \IteratorIterator($iterator); } elseif (\is_array($iterator)) { $iterator = new \ArrayIterator($iterator);
infection: src/FilterList.php#L46
Escaped Mutant for Mutator "CastBool": --- Original +++ New @@ @@ } elseif (\is_array($iterator)) { $iterator = new \ArrayIterator($iterator); } - return new \CallbackFilterIterator($iterator, $callback ?? fn($item) => (bool) $item); + return new \CallbackFilterIterator($iterator, $callback ?? fn($item) => $item); } }
infection: src/FilterList.php#L46
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ } elseif (\is_array($iterator)) { $iterator = new \ArrayIterator($iterator); } - return new \CallbackFilterIterator($iterator, $callback ?? fn($item) => (bool) $item); + return new \CallbackFilterIterator($iterator, fn($item) => (bool) $item ?? $callback); } }

Artifacts

Produced during runtime
Name Size
artifact Expired
15.8 KB