Merge pull request #12 from php-etl/feature/empty-function #45
Annotations
5 warnings
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/
|
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);
|
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);
|
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);
}
}
|
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);
}
}
|
The logs for this run have expired and are no longer available.
Loading