Merge pull request #167 from ergebnis/dependabot/composer/ergebnis/co… #452
Annotations
5 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run mutation tests with Xdebug and infection/infection:
src/Arrays/SortAssociativeArrayByKeyRector.php#L78
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
public function refactor(Node $node) : ?Node
{
- if (!$node instanceof Node\Expr\Array_) {
+ if (!true) {
return null;
}
if ($this->isScopeInTest($node)) {
|
Run mutation tests with Xdebug and infection/infection:
src/Arrays/SortAssociativeArrayByKeyRector.php#L88
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
/** @var array<int, Node\Expr\ArrayItem> $items */
$items = \array_filter($node->items, static function ($item) : bool {
- if (!$item instanceof Node\Expr\ArrayItem) {
+ if (!true) {
return false;
}
if (!$item->key instanceof Node\Scalar\String_) {
|
Run mutation tests with Xdebug and infection/infection:
src/Arrays/SortAssociativeArrayByKeyRector.php#L104
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
return null;
}
\usort($items, static function (Node\Expr\ArrayItem $a, Node\Expr\ArrayItem $b) : int {
- if (!$a->key instanceof Node\Scalar\String_) {
+ if (!true) {
throw new \RuntimeException('This should not happen.');
}
if (!$b->key instanceof Node\Scalar\String_) {
|
Run mutation tests with Xdebug and infection/infection:
src/Arrays/SortAssociativeArrayByKeyRector.php#L108
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if (!$a->key instanceof Node\Scalar\String_) {
throw new \RuntimeException('This should not happen.');
}
- if (!$b->key instanceof Node\Scalar\String_) {
+ if (!true) {
throw new \RuntimeException('This should not happen.');
}
return \strcmp($a->key->value, $b->key->value);
|
Loading